(Another) syntax error when running pydepends
With 3.3.0, after building qtcreator:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/site-packages/namcap.py", line 245, in <module>
process_realpackage(package, active_modules)
File "/usr/lib/python3.10/site-packages/namcap.py", line 98, in process_realpackage
rule.analyze(pkginfo, pkgtar)
File "/usr/lib/python3.10/site-packages/Namcap/rules/pydepends.py", line 91, in analyze
for module in get_imports(f):
File "/usr/lib/python3.10/site-packages/Namcap/rules/pydepends.py", line 68, in get_imports
root = ast.parse(file.read())
File "/usr/lib/python3.10/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 62
perm = os.stat(f).st_mode & 0777
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers