server/schemaserial.py
changeset 10612 84468b90e9c1
parent 10589 7c23b7de2b8d
child 10662 10942ed172de
--- a/server/schemaserial.py	Wed Sep 16 11:23:51 2015 +0200
+++ b/server/schemaserial.py	Mon Sep 14 16:03:07 2015 +0200
@@ -24,6 +24,8 @@
 import json
 import sys
 
+from six import string_types
+
 from logilab.common.shellutils import ProgressBar, DummyProgressBar
 
 from yams import BadSchemaDefinition, schema as schemamod, buildobjs as ybo
@@ -614,7 +616,7 @@
             # may occurs when modifying persistent schema
             continue
         for group_or_rqlexpr in grantedto:
-            if isinstance(group_or_rqlexpr, basestring):
+            if isinstance(group_or_rqlexpr, string_types):
                 # group
                 try:
                     yield ('SET X %s_permission Y WHERE Y eid %%(g)s, X eid %%(x)s' % action,