Index: inspect.py =================================================================== --- inspect.py (revision 74276) +++ inspect.py (working copy) @@ -236,10 +236,6 @@ 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