def linesBelowDoc(progPath: str) -> list: with open(progPath, 'r') as f: lines = f.readlines() DOC_BEGIN_MARKER = '/**' for i, line in enumerate(lines): if DOC_BEGIN_MARKER in line: return lines[i:] raise Exception(progPath + ": Doc comment not found") def allLines(progPath: str) -> list: with open(progPath, 'r') as f: lines = f.readlines() return lines
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode() File "/opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle raise NotImplementedError NotImplementedError