Skip to content

Commit 64a9eac

Browse files
committed
rU to r
In Python 3, universal newline handling is always on by default, so rU is no longer valid
1 parent 54990d8 commit 64a9eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openalea/lpy/gui/simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def open(self,fname):
355355
elif answer == QMessageBox.Discard:
356356
os.remove(bckupname)
357357
os.chdir(os.path.dirname(self.fname))
358-
code = open(readname,'rU').read()
358+
code = open(readname,'r').read()
359359
self.readonly = (not os.access(fname, os.W_OK))
360360
self.textedition = recovery
361361
self.setEdited(recovery)
@@ -367,7 +367,7 @@ def importtmpfile(self,fname):
367367
self.textedition = True
368368
self.setEdited(True)
369369
try:
370-
lpycode = open(fname,'rU').read()
370+
lpycode = open(fname,'r').read()
371371
self.opencode(lpycode)
372372
self._tmpfname = fname
373373
except:

0 commit comments

Comments
 (0)