diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-07-09 21:07:41 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-07-09 21:07:41 +0200 |
commit | 9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64 (patch) | |
tree | 57616cda14d8fd5a31c3d5cca5648f9b45a54c1f /Lib/idlelib/run.py | |
parent | e8e4e1456c8c168b5d1b5065280a50b3b5cf394f (diff) | |
download | cpython-git-9e6bf1a8ee8ea9d7b187763c92cd500bc614fc64.tar.gz |
Widen test to support unicode.
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 82db38a781..9389a2b0aa 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -263,7 +263,7 @@ class _RPCFile(io.TextIOBase): return setattr(self.rpc, name, value) def write(self, s): - if not isinstance(s, str): + if not isinstance(s, basestring): raise TypeError('must be str, not ' + type(s).__name__) return self.rpc.write(s) |