Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error #2

Open
roberto-arista opened this issue Feb 23, 2024 · 2 comments
Open

Syntax error #2

roberto-arista opened this issue Feb 23, 2024 · 2 comments

Comments

@roberto-arista
Copy link

Hey Gustavo!

@typemytype and I are running some validation over mechanic extensions, and compare-otfs seems to have invalid syntax (I suppose the in ElementTree.py module), could you have a look?

@roberto-arista
Copy link
Author

I just tried the extension and it works, so it might be a false negative.

fyi, we running something like this:

errors = []
for pyPath in self.libFolder.glob("**/*.py"):
    try:
        compile(pyPath.read_text(), pyPath.name, "exec", ast.PyCF_ONLY_AST)
    except SyntaxError as error:
        errors.append(error.msg)

@roberto-arista
Copy link
Author

this should fix the issue: #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant