1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Merge pull request #201 from AeonAxan/patch-1

fixed typo
This commit is contained in:
William Ting 2013-04-13 12:30:36 -07:00
commit 883967e9f1

View File

@ -193,7 +193,7 @@ class Database:
for path, weight in sorted(self.data.items(),
key=itemgetter(1),
reverse=True):
temp.write((unico("%s\t%s\n")%(weight, path)).encode("utf-8"))
temp.write((unico("%s\t%s\n" % (weight, path)).encode("utf-8")))
# catching disk errors and skipping save when file handle can't
# be closed.