Add spark grammar debugging. Start to comment grammer construct covered

by simple tests.
This commit is contained in:
rocky
2015-12-17 12:44:40 -05:00
parent 3604933a74
commit 29f02edf79
15 changed files with 41 additions and 16 deletions

View File

@@ -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):