Skip to content

Commit f4b7e3f

Browse files
author
Jean-Louis Fuchs
authored
Merge pull request #66 from adfinis/jlf/chore-remove-codecs-open
chore: remove `codecs.open`
2 parents 89c6fad + 300ffa5 commit f4b7e3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyaptly/snapshot.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Create and update snapshots in aptly."""
2-
import codecs
32
import datetime
43
import logging
54
from typing import Optional
@@ -37,7 +36,7 @@ def snapshot(cfg, args):
3736

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

0 commit comments

Comments
 (0)