Skip to content

Commit

Permalink
Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed May 26, 2016
1 parent 5aec0c5 commit 2091c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyblish_rpc/schema.py
Expand Up @@ -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")
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_production.py
Expand Up @@ -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()

0 comments on commit 2091c4a

Please sign in to comment.