Permalink
Browse files

Use unicode_to_str from py3compat

  • Loading branch information...
Jörgen Stenarson
Jörgen Stenarson committed Nov 16, 2011
1 parent a44e04d commit fb3b77629f2d2280b188fe466565ed223f99a26c
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/interactiveshell.py
@@ -2082,7 +2082,7 @@ def system_raw(self, cmd):
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)

0 comments on commit fb3b776

Please sign in to comment.