summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-07-09 19:07:41 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-07-09 19:07:41 (GMT)
commit9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64 (patch)
tree57616cda14d8fd5a31c3d5cca5648f9b45a54c1f /Lib/idlelib/PyShell.py
parente8e4e1456c8c168b5d1b5065280a50b3b5cf394f (diff)
downloadcpython-9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64.zip
cpython-9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64.tar.gz
cpython-9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64.tar.bz2
Widen test to support unicode.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 14f062e..3e23e6c 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1265,7 +1265,7 @@ class PseudoFile(object):
self.encoding = encoding
def write(self, s):
- if not isinstance(s, str):
+ if not isinstance(s, basestring):
raise TypeError('must be str, not ' + type(s).__name__)
self.shell.write(s, self.tags)