diff --git a/pyblish_rpc/schema.py b/pyblish_rpc/schema.py index fa1d410..9edb9cb 100644 --- a/pyblish_rpc/schema.py +++ b/pyblish_rpc/schema.py @@ -15,6 +15,8 @@ import jsonschema +from .vendor import six + cache = {} module_dir = os.path.dirname(__file__) schema_dir = os.path.join(module_dir, "schema") @@ -33,7 +35,7 @@ def load_all(): def validate(data, schema): - if isinstance(schema, basestring): + if isinstance(schema, six.string_types): schema = cache[schema + ".json"] resolver = jsonschema.RefResolver( diff --git a/tests/test_production.py b/tests/test_production.py index db3a30e..4468c1e 100644 --- a/tests/test_production.py +++ b/tests/test_production.py @@ -32,6 +32,6 @@ def setup(): def teardown(): """Shutdown module-level server""" self.client.kill() - print "Killed" + print("Killed") self.process.wait() assert not process.poll()