Remove special objects, they are no longer needed

This commit is contained in:
Dave Halter committed 2019-05-19 14:28:39 +02:00
1 parent 1b668966ce
commit 4b2518ca9a
3 files changed
-20

No files matched your search

-9
View File
@@ -438,12 +438,3 @@ def _is_class_instance(obj):
return False
else:
return cls != type and not issubclass(cls, NOT_CLASS_TYPES)
class _SPECIAL_OBJECTS(object):
BOUND_METHOD_CLASS = type(DirectObjectAccess(None, None).py__bool__)
def get_special_object(evaluator, identifier):
obj = getattr(_SPECIAL_OBJECTS, identifier)
return create_access_path(evaluator, obj)