mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
@ -1008,7 +1008,7 @@ class PyShell(OutputWindow):
|
|||
line = self.text.get("iomark", "end-1c")
|
||||
if len(line) == 0: # may be EOF if we quit our mainloop with Ctrl-C
|
||||
line = "\n"
|
||||
if isinstance(line, unicode):
|
||||
if isinstance(line, str):
|
||||
import IOBinding
|
||||
try:
|
||||
line = line.encode(IOBinding.encoding)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue