Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Fix Python version < 2.7.9 error#882

Open
arschlochnop wants to merge 1 commit into
n1nj4sec:unstablefrom
arschlochnop:unstable
Open

Fix Python version < 2.7.9 error#882
arschlochnop wants to merge 1 commit into
n1nj4sec:unstablefrom
arschlochnop:unstable

Conversation

@arschlochnop

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant