Skip to content

Commit

Permalink
Merge pull request #66 from adfinis/jlf/chore-remove-codecs-open
Browse files Browse the repository at this point in the history
chore: remove `codecs.open`
  • Loading branch information
Jean-Louis Fuchs authored Mar 5, 2024
2 parents 89c6fad + 300ffa5 commit f4b7e3f
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 f4b7e3f

Please sign in to comment.