--- a/server/sqlutils.py Wed Sep 16 11:23:51 2015 +0200
+++ b/server/sqlutils.py Mon Sep 14 16:03:07 2015 +0200
@@ -27,6 +27,7 @@
from os.path import abspath
from logging import getLogger
+from six import string_types
from six.moves import filter
from logilab import database as db, common as lgc
@@ -70,7 +71,7 @@
else:
execute = cursor_or_execute
sqlstmts_as_string = False
- if isinstance(sqlstmts, basestring):
+ if isinstance(sqlstmts, string_types):
sqlstmts_as_string = True
sqlstmts = sqlstmts.split(delimiter)
if withpb: