Skip to content

Commit 0a0cd52

Browse files
committed
Python3 Migration
1 parent 310a42a commit 0a0cd52

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyschema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _execute_if_necessary(self, code_like, expected_type):
113113
executed = True
114114
if callable(code_like):
115115
ret_value = code_like()
116-
elif isinstance(code_like, basestring):
116+
elif isinstance(code_like, str):
117117
try:
118118
ret_value = eval(code_like)
119119
except:
@@ -235,7 +235,7 @@ def create_schema_node(level, schema_dict):
235235
# We must have consumed every key in the dictionary
236236
if len(schema_dict) > 0:
237237
raise SchemaError('Invalid entries (%s) in schema at level %s for type %s' %
238-
(','.join(schema_dict.keys()), level, node_type))
238+
(','.join(list(schema_dict.keys())), level, node_type))
239239
# Return the schema node
240240
return schema_node
241241

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
description="Aviso Schema",
66
author="Eswar Vandanapu",
77
url="https://github.com/gnanarepo/py-schema",
8-
)
8+
py_modules=[]
9+
)

0 commit comments

Comments
 (0)