summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-08-02 15:40:11 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-08-02 15:40:11 (GMT)
commit9a6d6c93b45b32c21db5bce25495fec756f6c53d (patch)
treed31d2b1046ebba53fcb595b1c5dec235f0b90a8d /Lib
parent4326ad8f72053140aa658a0392a509c9da382670 (diff)
downloadcpython-9a6d6c93b45b32c21db5bce25495fec756f6c53d.zip
cpython-9a6d6c93b45b32c21db5bce25495fec756f6c53d.tar.gz
cpython-9a6d6c93b45b32c21db5bce25495fec756f6c53d.tar.bz2
Issue #6619: Remove duplicate 'isgenerator' function from inspect module.
Thanks Vincent Legoll.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/inspect.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 30ee670..21da7d4 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -240,10 +240,6 @@ def isroutine(object):
or ismethod(object)
or ismethoddescriptor(object))
-def isgenerator(object):
- """Return true if the object is a generator object."""
- return isinstance(object, types.GeneratorType)
-
def isabstract(object):
"""Return true if the object is an abstract base class (ABC)."""
return isinstance(object, type) and object.__flags__ & TPFLAGS_IS_ABSTRACT