Skip to content

Commit 9695b12

Browse files
committed
fixed syntax
1 parent 059dd4a commit 9695b12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ee/core/fileutils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ def searchreplace(self, fnm, sstr, rstr):
8484
rstr: replace string
8585
"""
8686
try:
87-
for line in fileinput.hook_encoded('utf-8').input(fnm,
88-
inplace=True):
87+
for line in fileinput.input(fnm, inplace=True,
88+
openhook=fileinput.
89+
hook_encoded('utf-8')):
8990
print(line.replace(sstr, rstr), end='')
9091
fileinput.close()
9192
except Exception as e:

0 commit comments

Comments
 (0)