Skip to content

Commit

Permalink
chore: remove codecs.open
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Louis Fuchs committed Mar 3, 2024
1 parent aa82c4d commit 300ffa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyaptly/snapshot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Create and update snapshots in aptly."""
import codecs
import datetime
import logging
from typing import Optional
Expand Down Expand Up @@ -37,7 +36,7 @@ def snapshot(cfg, args):

if args.debug: # pragma: no cover
dot_file = "/tmp/commands.dot"
with codecs.open(dot_file, "w", "UTF-8") as fh_dot:
with open(dot_file, "w", encoding="UTF-8") as fh_dot:
fh_dot.write(command.Command.command_list_to_digraph(commands))
lg.info("Wrote command dependency tree graph to %s", dot_file)

Expand Down

0 comments on commit 300ffa5

Please sign in to comment.