MCPcopy
hub / github.com/nltk/nltk / find_class

Function find_class

tools/find_deprecated.py:106–113  ·  view source on GitHub ↗
(s, index)

Source from the content-addressed store, hash-verified

104
105
106def find_class(s, index):
107 lines = s[:index].split("\n")
108 while lines:
109 m = CLASS_DEF_RE.match(lines[-1])
110 if m:
111 return m.group(1) + "."
112 lines.pop()
113 return "?."
114
115
116def find_deprecated_defs(pkg_dir):

Callers 1

find_deprecated_defsFunction · 0.85

Calls 2

matchMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…