|
@ -84,8 +84,9 @@ class EEFileUtils(): |
|
|
rstr: replace string |
|
|
rstr: replace string |
|
|
""" |
|
|
""" |
|
|
try: |
|
|
try: |
|
|
for line in fileinput.hook_encoded('utf-8').input(fnm, |
|
|
for line in fileinput.input(fnm, inplace=True, |
|
|
inplace=True): |
|
|
openhook=fileinput. |
|
|
|
|
|
hook_encoded('utf-8')): |
|
|
print(line.replace(sstr, rstr), end='') |
|
|
print(line.replace(sstr, rstr), end='') |
|
|
fileinput.close() |
|
|
fileinput.close() |
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|