Skip to content
Snippets Groups Projects
Commit fa664cff authored by nimrod's avatar nimrod
Browse files

- Fix doctests to work with Python 3.2.

parent b119163b
No related branches found
No related tags found
No related merge requests found
...@@ -47,9 +47,9 @@ def from_json(value): ...@@ -47,9 +47,9 @@ def from_json(value):
>>> from_json('[1, 2, 3]') >>> from_json('[1, 2, 3]')
[1, 2, 3] [1, 2, 3]
>>> from_json('"a"') == six.text_type(u'a') >>> from_json('"a"') == six.text_type('a')
True True
>>> from_json('{"1": {"a": [1, 2, 3]}}') == {u'1': {u'a': [1, 2, 3]}} >>> from_json('{"1": {"a": [1, 2, 3]}}') == {'1': {'a': [1, 2, 3]}}
True True
''' '''
from json import loads from json import loads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment