]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mode rU for universal newlines, not rT. Spotted by Guido.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Sep 2002 19:41:28 +0000 (19:41 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Sep 2002 19:41:28 +0000 (19:41 +0000)
Mac/Tools/IDE/PyDebugger.py

index 250d5d33356601631403385833c8e3cb11a7d976..bad02f1ce4329fa131800daba4d8a175d2450778 100644 (file)
@@ -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)