diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 15:41:08 (GMT) |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 15:41:08 (GMT) |
| commit | 3a7946ff35928140c323d2b289b8e24896811f04 (patch) | |
| tree | ee15028f8cac71708a7ff8af54fc1b7706f75e66 /Lib/inspect.py | |
| parent | 9a6e645b9fc6895dcf4251dc7cc237da6d567336 (diff) | |
| download | cpython-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.py | 4 |
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 |
