summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-08-02 15:41:08 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-08-02 15:41:08 (GMT)
commit3a7946ff35928140c323d2b289b8e24896811f04 (patch)
treeee15028f8cac71708a7ff8af54fc1b7706f75e66 /Lib/inspect.py
parent9a6e645b9fc6895dcf4251dc7cc237da6d567336 (diff)
downloadcpython-3a7946ff35928140c323d2b289b8e24896811f04.zip
cpython-3a7946ff35928140c323d2b289b8e24896811f04.tar.gz
cpython-3a7946ff35928140c323d2b289b8e24896811f04.tar.bz2
Merged revisions 74285 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74285 | mark.dickinson | 2009-08-02 16:40:11 +0100 (Sun, 02 Aug 2009) | 3 lines Issue #6619: Remove duplicate 'isgenerator' function from inspect module. Thanks Vincent Legoll. ........
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 318fa07..2ec991f 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