We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566dbc3 commit 4d9777cCopy full SHA for 4d9777c
1 file changed
sandboxes/dynamicanalysis/analyze-python.py
@@ -58,7 +58,7 @@ def path_to_import(path):
58
if path.name == '__init__.py':
59
import_path = str(path.parent)
60
else:
61
- import_path = str(path).rstrip(PY_EXTENSION)
+ import_path = str(path).removesuffix(PY_EXTENSION)
62
63
return import_path.replace('/', '.')
64
0 commit comments