Fix a TODO

This commit is contained in:
Dave Halter
2019-08-30 01:18:13 +02:00
parent 286d2c9b1a
commit 59f26ad6ab

View File

@@ -133,8 +133,7 @@ class ExecutionRecursionDetector(object):
self._execution_count += 1 self._execution_count += 1
if self._funcdef_execution_counts.setdefault(funcdef, 0) >= per_function_execution_limit: if self._funcdef_execution_counts.setdefault(funcdef, 0) >= per_function_execution_limit:
# TODO why check for builtins here again? if module_context.py__name__() == 'typing':
if module_context.py__name__() in ('builtins', 'typing'):
return False return False
debug.warning( debug.warning(
'Per function execution limit (%s) reached: %s', 'Per function execution limit (%s) reached: %s',