Browse Source

fixed syntax

bugfixes
harshadyeola 10 years ago
parent
commit
9695b12da1
  1. 5
      ee/core/fileutils.py

5
ee/core/fileutils.py

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

Loading…
Cancel
Save