src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/prohibitedImports.py

branch
server
changeset 10704
27d21e5163b8
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
71 (checkProhibitedImports, tuple(_prohibitedImports)), 71 (checkProhibitedImports, tuple(_prohibitedImports)),
72 ], 72 ],
73 } 73 }
74 74
75 75
76 def checkProhibitedImports(reportError, context, config): # noqa: U100 76 def checkProhibitedImports(reportError, context, _config):
77 """ 77 """
78 Function to check for prohibited imports. 78 Function to check for prohibited imports.
79 79
80 @param reportError function to be used to report errors 80 @param reportError function to be used to report errors
81 @type func 81 @type func
82 @param context security context object 82 @param context security context object
83 @type SecurityContext 83 @type SecurityContext
84 @param config dictionary with configuration data 84 @param _config dictionary with configuration data (unused)
85 @type dict 85 @type dict
86 """ 86 """
87 nodeType = context.node.__class__.__name__ 87 nodeType = context.node.__class__.__name__
88 88
89 if nodeType.startswith("Import"): 89 if nodeType.startswith("Import"):

eric ide

mercurial