diff options
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/types.py b/Lib/types.py index 39812ac322..db63c96e5e 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -56,9 +56,7 @@ class _C: def _m(self): pass ClassType = type(_C) UnboundMethodType = type(_C._m) # Same as MethodType -_x = _C() -InstanceType = type(_x) -MethodType = type(_x._m) +MethodType = type(_C()._m) BuiltinFunctionType = type(len) BuiltinMethodType = type([].append) # Same as BuiltinFunctionType @@ -86,4 +84,4 @@ EllipsisType = type(Ellipsis) DictProxyType = type(TypeType.__dict__) NotImplementedType = type(NotImplemented) -del sys, _f, _g, _C, _x # Not for export +del sys, _f, _g, _C # Not for export |