Remove a possible security issue
sys paths are not executed anymore and use static analysis now.
This commit is contained in:
1 parent
aa8a6d2482
commit
7019ca643e
4 files changed
+29
-41
No files matched your search
@@ -174,14 +174,6 @@ except NameError:
|
||||
unicode = str
|
||||
|
||||
|
||||
# exec function
|
||||
if is_py3:
|
||||
def exec_function(source, global_map):
|
||||
exec(source, global_map)
|
||||
else:
|
||||
eval(compile("""def exec_function(source, global_map):
|
||||
exec source in global_map """, 'blub', 'exec'))
|
||||
|
||||
# re-raise function
|
||||
if is_py3:
|
||||
def reraise(exception, traceback):
|
||||
|
||||
Reference in new issue
Block a user