mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Fix pour Verima Python 3
This commit is contained in:
parent
1b80c8bc60
commit
7334d6f9f7
@ -6,7 +6,7 @@ def writeFile( fn, txt = None):
|
|||||||
if fn == None : return
|
if fn == None : return
|
||||||
fn = str(fn)
|
fn = str(fn)
|
||||||
try:
|
try:
|
||||||
f = open(fn, 'wb')
|
f = open(fn, 'w')
|
||||||
f.write(txt)
|
f.write(txt)
|
||||||
f.close()
|
f.close()
|
||||||
return 1
|
return 1
|
||||||
@ -20,7 +20,7 @@ def readFile( fn, txt):
|
|||||||
|
|
||||||
if fn == None : return
|
if fn == None : return
|
||||||
try:
|
try:
|
||||||
f = open(fn, 'wb')
|
f = open(fn, 'w')
|
||||||
txt=f.read()
|
txt=f.read()
|
||||||
f.close()
|
f.close()
|
||||||
except IOError:
|
except IOError:
|
||||||
|
Loading…
Reference in New Issue
Block a user