##// END OF EJS Templates
Reintroduce compatibility functions for a few release;...
Matthias Bussonnier -
Show More
@@ -185,3 +185,10 b' def u_format(s):'
185 PY2 = not PY3
185 PY2 = not PY3
186 PYPY = platform.python_implementation() == "PyPy"
186 PYPY = platform.python_implementation() == "PyPy"
187
187
188 # Cython still rely on that as a Dec 28 2019
189 # See https://github.com/cython/cython/pull/3291 and
190 # https://github.com/ipython/ipython/issues/12068
191 def no_code(x, encoding=None):
192 return x
193 unicode_to_str = cast_bytes_py2 = no_code
194
General Comments 0
You need to be logged in to leave comments. Login now