mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
use utf8 for collection.log
This commit is contained in:
parent
05d13de766
commit
f8e300ab1d
1 changed files with 1 additions and 1 deletions
|
|
@ -840,7 +840,7 @@ and queue = 0""", intTime(), self.usn())
|
|||
if os.path.exists(lpath2):
|
||||
os.unlink(lpath2)
|
||||
os.rename(lpath, lpath2)
|
||||
self._logHnd = open(lpath, "a")
|
||||
self._logHnd = open(lpath, "a", encoding="utf8")
|
||||
|
||||
def _closeLog(self):
|
||||
self._logHnd = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue