Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _execute_if_necessary(self, code_like, expected_type):
executed = True
if callable(code_like):
ret_value = code_like()
elif isinstance(code_like, basestring):
elif isinstance(code_like, str):
try:
ret_value = eval(code_like)
except:
Expand Down Expand Up @@ -235,7 +235,7 @@ def create_schema_node(level, schema_dict):
# We must have consumed every key in the dictionary
if len(schema_dict) > 0:
raise SchemaError('Invalid entries (%s) in schema at level %s for type %s' %
(','.join(schema_dict.keys()), level, node_type))
(','.join(list(schema_dict.keys())), level, node_type))
# Return the schema node
return schema_node

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
description="Aviso Schema",
author="Eswar Vandanapu",
url="https://github.com/gnanarepo/py-schema",
)
py_modules=[]
)