From 56f06ced53f5bd0042017360086f63b68ef9cbab 2012-04-26 16:44:00 From: Brandon Parsons Date: 2012-04-26 16:44:00 Subject: [PATCH] remove unnecessary function call --- diff --git a/IPython/utils/py3compat.py b/IPython/utils/py3compat.py index 936c5df..4115645 100644 --- a/IPython/utils/py3compat.py +++ b/IPython/utils/py3compat.py @@ -43,11 +43,11 @@ def getdefaultencoding(): return enc or sys.getdefaultencoding() def decode(s, encoding=None): - encoding = get_stream_enc(sys.stdin, encoding) or getdefaultencoding() + encoding = encoding or getdefaultencoding() return s.decode(encoding, "replace") def encode(u, encoding=None): - encoding = get_stream_enc(sys.stdin, encoding) or getdefaultencoding() + encoding = encoding or getdefaultencoding() return u.encode(encoding, "replace")