summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-08-02 15:51:59 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-08-02 15:51:59 (GMT)
commitc033942ed9b4814ec7b187b7e09185d89334be30 (patch)
tree0392963910232b6bd234e35a832e7e5f06176dd7 /Lib/inspect.py
parentb5b367811cfe399f1ac9e10cdce751fecb015610 (diff)
downloadcpython-c033942ed9b4814ec7b187b7e09185d89334be30.zip
cpython-c033942ed9b4814ec7b187b7e09185d89334be30.tar.gz
cpython-c033942ed9b4814ec7b187b7e09185d89334be30.tar.bz2
Merged revisions 74287 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ................ r74287 | mark.dickinson | 2009-08-02 16:51:19 +0100 (Sun, 02 Aug 2009) | 10 lines 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 fe3ffc7..4b3e27a 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -236,10 +236,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