diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-31 23:48:39 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-31 23:48:39 (GMT) |
commit | 8ad09a4f2e557723395fc0840750c178924166b8 (patch) | |
tree | 07838590351ff6d6fb40fc17e0a33b742e40c9ab /Lib/inspect.py | |
parent | 3cda1db67f555d7628dbc808d3bc1e307eee623b (diff) | |
download | cpython-8ad09a4f2e557723395fc0840750c178924166b8.zip cpython-8ad09a4f2e557723395fc0840750c178924166b8.tar.gz cpython-8ad09a4f2e557723395fc0840750c178924166b8.tar.bz2 |
#4795 inspect.isgeneratorfunction() should return False instead of None
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 1 |
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. |