Skip to content

Commit

Permalink
minor refactoring for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 5, 2017
1 parent 87630ea commit 68ccaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynlpl/formats/folia.py
Expand Up @@ -3455,7 +3455,7 @@ def finddefaultreference(self):
#no parent, breaking
return False

if isinstance(e,AbstractStructureElement) or isinstance(e,AbstractSubtokenAnnotation) or isinstance(e, String):
if isinstance(e, (AbstractStructureElement, AbstractSubtokenAnnotation, String)):
depth += 1
if depth == 2:
return e
Expand Down

0 comments on commit 68ccaae

Please sign in to comment.