summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index d3d946d..230df2b 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -161,6 +161,7 @@ def isgeneratorfunction(object):
if (isfunction(object) or ismethod(object)) and \
object.func_code.co_flags & CO_GENERATOR:
return True
+ return False
def isgenerator(object):
"""Return true if the object is a generator.