blackListCalls: fixed an porting issue.

Fri, 19 Jun 2020 13:42:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 19 Jun 2020 13:42:52 +0200
changeset 7629
21fea11a82fa
parent 7628
f904d0eef264
child 7630
4010cc7e9c0b

blackListCalls: fixed an porting issue.

eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListCalls.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListCalls.py	Wed Jun 17 20:18:54 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListCalls.py	Fri Jun 19 13:42:52 2020 +0200
@@ -211,7 +211,7 @@
             # argument name as an actual import module name.
             # Will produce None if argument is not a literal or identifier.
             if name in ["importlib.import_module", "importlib.__import__"]:
-                name = context.call_args[0]
+                name = context.callArgs[0]
         
         for code in _blacklists:
             qualnames, severity = _blacklists[code]

eric ide

mercurial