mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
make sure we write profile README in utf8
This commit is contained in:
parent
15dd3d5a5d
commit
f7b41a11f6
1 changed files with 2 additions and 2 deletions
|
@ -227,13 +227,13 @@ create table if not exists profiles
|
|||
if self.firstRun:
|
||||
self.create(_("User 1"))
|
||||
p = os.path.join(self.base, "README.txt")
|
||||
open(p, "w").write(_("""\
|
||||
open(p, "w").write((_("""\
|
||||
This folder stores all of your Anki data in a single location,
|
||||
to make backups easy. To tell Anki to use a different location,
|
||||
please see:
|
||||
|
||||
%s
|
||||
""") % (appHelpSite + "#startupopts"))
|
||||
""") % (appHelpSite + "#startupopts")).encode("utf8"))
|
||||
|
||||
def _pwhash(self, passwd):
|
||||
return checksum(unicode(self.meta['id'])+unicode(passwd))
|
||||
|
|
Loading…
Reference in a new issue