Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 41575:beacf40b5960
Rip out all the u"..." literals and calls to unicode().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 02 May 2007 19:09:54 +0000 |
| parents | f5790f96acf3 |
| children | bd6acfdb47d2 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Fri Apr 27 23:53:51 2007 +0000 +++ b/Lib/idlelib/PyShell.py Wed May 02 19:09:54 2007 +0000 @@ -1008,7 +1008,7 @@ 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)
