Mercurial > cpython-lru_cache-weakref
diff Lib/StringIO.py @ 31515:71a294bd7950 legacy-trunk
Replace backticks with repr() or "%r"
From SF patch #852334.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Thu, 12 Feb 2004 17:35:32 +0000 |
| parents | aca1ce1b4b61 |
| children | 1543afab1b67 |
line wrap: on
line diff
--- a/Lib/StringIO.py Thu Feb 12 15:28:27 2004 +0000 +++ b/Lib/StringIO.py Thu Feb 12 17:35:32 2004 +0000 @@ -222,10 +222,10 @@ f.seek(len(lines[0])) f.write(lines[1]) f.seek(0) - print 'First line =', `f.readline()` + print 'First line =', repr(f.readline()) print 'Position =', f.tell() line = f.readline() - print 'Second line =', `line` + print 'Second line =', repr(line) f.seek(-len(line), 1) line2 = f.read(len(line)) if line != line2:
