You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add spark grammar debugging. Start to comment grammer construct covered
by simple tests.
This commit is contained in:
@@ -28,7 +28,8 @@ def check_object_path(path):
|
||||
path = importlib.util.cache_from_source(path)
|
||||
return path
|
||||
if not path.endswith(".pyc") and not path.endswith(".pyo"):
|
||||
raise ValueError("path must point to a .py or .pyc file")
|
||||
raise FileNotFoundError("path %s must point to a .py or .pyc file" %
|
||||
path)
|
||||
return path
|
||||
|
||||
def disco(version, co, out=None):
|
||||
|
Reference in New Issue
Block a user