Skip to content

Commit

Permalink
changing type checking (see issue #1) as per Thibault's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mromanello committed Feb 14, 2019
1 parent 4554360 commit 6d3175a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surf/query/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def validate_statement(statement):
# to use `type()` instead of `isinstance()` as we need to tell
# whether `statement` is e.g. a list/tuple or an instance of
# `NamedGroup`
if type(statement) in [list, tuple]:
if isinstance(list, tuple) and not isinstance(group):
try:
s, p, o = statement
except:
Expand Down

0 comments on commit 6d3175a

Please sign in to comment.