Update of /cvsroot/pythoncard/PythonCard
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20835
Modified Files:
util.py
Log Message:
updated readAndEvalFile once again
Index: util.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/util.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** util.py 25 Sep 2004 21:48:58 -0000 1.34
--- util.py 26 Sep 2004 16:10:52 -0000 1.35
***************
*** 42,46 ****
# old way commented out
#txt = f.read().replace('\r\n','\n')
! txt = '\n'.join(f.readlines())
f.close()
return eval(txt, globals())
--- 42,46 ----
# old way commented out
#txt = f.read().replace('\r\n','\n')
! txt = '\n'.join(f.read().splitlines())
f.close()
return eval(txt, globals())
|