diff options
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 2 |
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) |