mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Mode rU for universal newlines, not rT. Spotted by Guido.
This commit is contained in:
parent
c1ddc505d9
commit
10c6eda070
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ class Debugger(bdb.Bdb):
|
|||
self.w.panes.bottom.src.source.set(editor.get(), filename)
|
||||
else:
|
||||
try:
|
||||
f = open(filename, 'rT')
|
||||
f = open(filename, 'rU')
|
||||
data = f.read()
|
||||
f.close()
|
||||
except IOError:
|
||||
|
@ -360,7 +360,7 @@ class Debugger(bdb.Bdb):
|
|||
if f:
|
||||
f.close()
|
||||
if f and suff == '.py':
|
||||
f = open(filename, 'rT')
|
||||
f = open(filename, 'rU')
|
||||
data = f.read()
|
||||
f.close()
|
||||
self.w.panes.bottom.src.source.set(data, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue