mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Merge remote-tracking branch 'origin/ngo/FixVerima'
This commit is contained in:
commit
ec2b6eb2fb
@ -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