1
0
mirror of https://github.com/wting/autojump synced 2024-09-30 06:50:47 +00:00

fixed typo

The previous code was most probably a typo if i think.
This commit is contained in:
Ahmed Aeon Axan 2013-04-14 00:57:59 +05:30
parent 0b831e9019
commit f7e98ea498

View File

@ -193,7 +193,7 @@ class Database:
for path, weight in sorted(self.data.items(), for path, weight in sorted(self.data.items(),
key=itemgetter(1), key=itemgetter(1),
reverse=True): 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 # catching disk errors and skipping save when file handle can't
# be closed. # be closed.