Skip to content

Commit

Permalink
Make generated python types import unicode_literals (#171)
Browse files Browse the repository at this point in the history
* Make generated python types import unicode_literals

* Bump to 2.2.1

Co-authored-by: Connor Worley <cworley@dropbox.com>
  • Loading branch information
connorworley and Connor Worley committed Jul 27, 2020
1 parent e3050ac commit 02f4579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -38,7 +38,7 @@

dist = setup(
name='stone',
version='2.2.0',
version='2.2.1',
install_requires=install_reqs,
setup_requires=setup_requires,
tests_require=test_reqs,
Expand Down
2 changes: 2 additions & 0 deletions stone/backends/python_types.py
Expand Up @@ -124,6 +124,8 @@ def _generate_base_namespace_module(self, api, namespace):
self.emit('"""')
self.emit()

self.emit("from __future__ import unicode_literals")

self.emit_raw(validators_import)

# Generate import statements for all referenced namespaces.
Expand Down

0 comments on commit 02f4579

Please sign in to comment.