Browse Source

Merge branch 'python' of github.com:rtCamp/easyengine into python

bugfixes
gau1991 10 years ago
parent
commit
ed3a833e11
  1. 4
      ee/core/fileutils.py

4
ee/core/fileutils.py

@ -84,9 +84,7 @@ class EEFileUtils():
rstr: replace string rstr: replace string
""" """
try: try:
for line in fileinput.input(fnm, inplace=True, for line in fileinput.input(fnm, 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:

Loading…
Cancel
Save