Skip to content

Commit

Permalink
style: format code with Autopep8
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 8018dc3 according to the output
from Autopep8.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Sep 29, 2023
1 parent 8018dc3 commit 70c4690
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/remove_duplicates_zsh_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def remove_duplicates_from_history_file(path):
for line in lines:
command = line.split(";")[-1]
commands.add(command)
# TODO: Messes up the order of commands (timestamps)

# TODO: Messes up the order of commands (timestamps)
with open(path, "w") as file:
begin = 1600000000
for command in commands:
Expand All @@ -24,6 +24,7 @@ def remove_duplicates_from_history_file(path):
file.write(f": { begin }:0;"+command)
begin += 1


if __name__ == "__main__":
history_path = "/home/user/.zsh_history"
remove_duplicates_from_history_file(
Expand Down

0 comments on commit 70c4690

Please sign in to comment.