Skip to content

Commit 6d6ebed

Browse files
authored
Merge pull request #12069 from Carreau/reintroduce-for-cython
Reintroduce compatibility functions for a few release;
2 parents 54057a7 + 9a8d1a3 commit 6d6ebed

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎IPython/utils/py3compat.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,10 @@ def u_format(s):
185185
PY2 = not PY3
186186
PYPY = platform.python_implementation() == "PyPy"
187187

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+

0 commit comments

Comments
 (0)