summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-09-12 19:41:28 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-09-12 19:41:28 (GMT)
commit10c6eda070f3754a40f6ea3cdf8c571bbc27f038 (patch)
tree9e634b5a2ab12d433423616590164edf2933a019 /Mac
parentc1ddc505d989fa5d5b432751fd2eb0e3eec796a0 (diff)
downloadcpython-10c6eda070f3754a40f6ea3cdf8c571bbc27f038.zip
cpython-10c6eda070f3754a40f6ea3cdf8c571bbc27f038.tar.gz
cpython-10c6eda070f3754a40f6ea3cdf8c571bbc27f038.tar.bz2
Mode rU for universal newlines, not rT. Spotted by Guido.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/PyDebugger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/PyDebugger.py b/Mac/Tools/IDE/PyDebugger.py
index 250d5d3..bad02f1 100644
--- a/Mac/Tools/IDE/PyDebugger.py
+++ b/Mac/Tools/IDE/PyDebugger.py
@@ -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)