-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from dimagi/gh/drop-code-support-py2
Drop code supporting Python 2
- Loading branch information
Showing
20 changed files
with
5,220 additions
and
5,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
from __future__ import absolute_import | ||
from __future__ import unicode_literals | ||
from .base import JsonObjectMeta | ||
from .containers import JsonArray | ||
from .properties import * | ||
from .api import JsonObject | ||
import six | ||
|
||
if six.PY3: | ||
__all__ = [ | ||
'IntegerProperty', 'FloatProperty', 'DecimalProperty', | ||
'StringProperty', 'BooleanProperty', | ||
'DateProperty', 'DateTimeProperty', 'TimeProperty', | ||
'ObjectProperty', 'ListProperty', 'DictProperty', 'SetProperty', | ||
'JsonObject', 'JsonArray', | ||
] | ||
else: | ||
__all__ = [ | ||
b'IntegerProperty', b'FloatProperty', b'DecimalProperty', | ||
b'StringProperty', b'BooleanProperty', | ||
b'DateProperty', b'DateTimeProperty', b'TimeProperty', | ||
b'ObjectProperty', b'ListProperty', b'DictProperty', b'SetProperty', | ||
b'JsonObject', b'JsonArray', | ||
] | ||
__all__ = [ | ||
'IntegerProperty', 'FloatProperty', 'DecimalProperty', | ||
'StringProperty', 'BooleanProperty', | ||
'DateProperty', 'DateTimeProperty', 'TimeProperty', | ||
'ObjectProperty', 'ListProperty', 'DictProperty', 'SetProperty', | ||
'JsonObject', 'JsonArray', | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.