##// END OF EJS Templates
re-cast int/float subclasses to int/float in json_clean...
re-cast int/float subclasses to int/float in json_clean Protects against custom `__str__` in int subclasses (e.g. enums). Works around a [bug in the stdlib](http://bugs.python.org/issue12657). closes #4598

File last commit:

r6547:cca0bfa1
r13706:e6f14d5a
Show More
nonascii.py
5 lines | 175 B | text/x-python | PythonLexer
Thomas Kluyver
Workaround for bug in Python 3.1 py_compile
r6547 # coding: iso-8859-5
Thomas Kluyver
Add file required for Unicode test.
r6302 # (Unlikely to be the default encoding for most testers.)
# ������������������� <- Cyrillic characters
from __future__ import unicode_literals
u = '����'