--- a/server/querier.py Wed Sep 16 11:23:51 2015 +0200
+++ b/server/querier.py Mon Sep 14 16:03:07 2015 +0200
@@ -24,6 +24,7 @@
from itertools import repeat
+from six import string_types
from six.moves import range
from rql import RQLSyntaxError, CoercionError
@@ -450,11 +451,11 @@
relations = {}
for subj, rtype, obj in self.relation_defs():
# if a string is given into args instead of an int, we get it here
- if isinstance(subj, basestring):
+ if isinstance(subj, string_types):
subj = int(subj)
elif not isinstance(subj, (int, long)):
subj = subj.entity.eid
- if isinstance(obj, basestring):
+ if isinstance(obj, string_types):
obj = int(obj)
elif not isinstance(obj, (int, long)):
obj = obj.entity.eid