190 (checkProhibitedCalls, tuple(_prohibitedCalls)), |
190 (checkProhibitedCalls, tuple(_prohibitedCalls)), |
191 ], |
191 ], |
192 } |
192 } |
193 |
193 |
194 |
194 |
195 def checkProhibitedCalls(reportError, context, config): # noqa: U100 |
195 def checkProhibitedCalls(reportError, context, _config): |
196 """ |
196 """ |
197 Function to check for prohibited method calls. |
197 Function to check for prohibited method calls. |
198 |
198 |
199 @param reportError function to be used to report errors |
199 @param reportError function to be used to report errors |
200 @type func |
200 @type func |
201 @param context security context object |
201 @param context security context object |
202 @type SecurityContext |
202 @type SecurityContext |
203 @param config dictionary with configuration data |
203 @param _config dictionary with configuration data (unused) |
204 @type dict |
204 @type dict |
205 """ |
205 """ |
206 nodeType = context.node.__class__.__name__ |
206 nodeType = context.node.__class__.__name__ |
207 |
207 |
208 if nodeType == "Call": |
208 if nodeType == "Call": |