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

Removing troubleshooting write

This commit is contained in:
Mitchell Ludwig 2019-09-15 00:36:12 -06:00
parent 697d240291
commit ed103d53c8

View File

@ -118,7 +118,6 @@ def add_path(data, path, weight=10):
slash_only_path = re.sub(re.escape(os.sep), "/", path) slash_only_path = re.sub(re.escape(os.sep), "/", path)
orig_weight = data.get(slash_only_path, 0) orig_weight = data.get(slash_only_path, 0)
data[slash_only_path] = sqrt((orig_weight ** 2) + (weight ** 2)) data[slash_only_path] = sqrt((orig_weight ** 2) + (weight ** 2))
stderr.write(f"Original weight: {orig_weight} plus weight {weight} = {data[slash_only_path]}")
return data, Entry(path, data[slash_only_path]) return data, Entry(path, data[slash_only_path])