Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9e6bf1a8
Commit
9e6bf1a8
authored
Jul 09, 2012
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Widen test to support unicode.
parent
e8e4e145
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+1
-1
Lib/idlelib/run.py
Lib/idlelib/run.py
+1
-1
No files found.
Lib/idlelib/PyShell.py
View file @
9e6bf1a8
...
...
@@ -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)
...
...
Lib/idlelib/run.py
View file @
9e6bf1a8
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment