Skip to content

Commit

Permalink
Revert "using isinstance to add subclass support"
Browse files Browse the repository at this point in the history
This reverts commit df0c7e9.
  • Loading branch information
adriank committed Oct 17, 2019
1 parent f94aab5 commit 051a428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objectpath/core/interpreter.py
Expand Up @@ -42,7 +42,7 @@ def __init__(self, obj, cfg=None):
if self.D: super(Tree, self).__init__()

def setData(self, obj):
if isinstance(obj, tuple(ITER_TYPES + [dict])):
if type(obj) in ITER_TYPES + [dict]:
self.data = obj

def setObjectGetter(self, object_getter_cb):
Expand Down

0 comments on commit 051a428

Please sign in to comment.