We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3232cf commit 9e1eeb4Copy full SHA for 9e1eeb4
1 file changed
core/importer.py
@@ -93,11 +93,11 @@ def strat_text_prepend(src, dest):
93
log.i('importing {} to {} by copying'.format(src, dest))
94
shutil.copy2(src, dest)
95
return True
96
- with open(src) as f:
+ with open(src, encoding='latin1') as f:
97
srctext = f.read()
98
- with open(dest) as f:
+ with open(dest, encoding='latin1') as f:
99
desttext = f.read()
100
- with open(src, 'w') as f:
+ with open(src, 'w', encoding='latin1') as f:
101
log.i('importing {} to {} by prepending'.format(src, dest))
102
f.writelines([srctext, '\n', desttext])
103
0 commit comments