MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse_updated_lib_issue

Function parse_updated_lib_issue

scripts/generate_checklist.py:44–57  ·  view source on GitHub ↗
(issue_body: str)

Source from the content-addressed store, hash-verified

42
43
44def parse_updated_lib_issue(issue_body: str) -> dict[str, LibUpdate]:
45 lines = issue_body.splitlines()
46 updated_libs = {}
47 for line in lines:
48 if line.strip().startswith("- "):
49 line = line.strip()[2:]
50 out = line.split(" ")
51 out = [x for x in out if x]
52 assert len(out) < 3
53 if len(out) == 1:
54 updated_libs[out[0]] = LibUpdate()
55 elif len(out) == 2:
56 updated_libs[out[0]] = LibUpdate(out[1], check_pr(out[1]))
57 return updated_libs
58
59
60def get_updated_libs() -> dict[str, LibUpdate]:

Callers 1

get_updated_libsFunction · 0.85

Calls 7

lenFunction · 0.85
LibUpdateClass · 0.85
check_prFunction · 0.85
splitlinesMethod · 0.45
startswithMethod · 0.45
stripMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected