From fb3b77629f2d2280b188fe466565ed223f99a26c 2011-11-16 19:24:02 From: Jörgen Stenarson Date: 2011-11-16 19:24:02 Subject: [PATCH] Use unicode_to_str from py3compat --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 8dc0e8f..cef8d52 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2082,7 +2082,7 @@ class InteractiveShell(SingletonConfigurable, Magic): with AvoidUNCPath() as path: if path is not None: cmd = '"pushd %s &&"%s' % (path, cmd) - cmd = cmd.encode(sys.stdin.encoding) + cmd = py3compat.unicode_to_str(cmd) ec = os.system(cmd) else: ec = os.system(cmd)