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

Fix Python version < 2.7.9 error #882

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

arschlochnop
Copy link
Contributor

The tuple form has not always been 100 % compatible, as there was a bug in handling of exec in functions with nested functions (issue 21591);
Reference: https://stackoverflow.com/a/41368813

Error info:

Python 2.7.5 (default, Apr  2 2020, 13:16:51) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scriptlets import load_scriptlets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "scriptlets/__init__.py", line 334
    exec(metadata, metadict)
SyntaxError: unqualified exec is not allowed in function 'parse_scriptlet' it contains a nested function with free variables

The tuple form has not always been 100 % compatible, as there was a bug in handling of exec in functions with nested functions (issue 21591);
Reference: https://stackoverflow.com/a/41368813
@arschlochnop arschlochnop changed the title Fix version < Python 2.7.9 error Fix Python version < 2.7.9 error Oct 10, 2020
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

Successfully merging this pull request may close these issues.

1 participant