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

Merge pull request #193 from svent/normalize_paths

normalize path ending before adding to the DB
This commit is contained in:
William Ting 2013-03-11 15:54:15 -07:00
commit 9c1c73a673

View File

@ -89,6 +89,7 @@ class Database:
"""
Increase weight of existing paths or initialize new ones to 10.
"""
path = path.rstrip(os.sep)
if path not in self.data:
self.data[path] = increment
else: