We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89c6fad + 300ffa5 commit f4b7e3fCopy full SHA for f4b7e3f
pyaptly/snapshot.py
@@ -1,5 +1,4 @@
1
"""Create and update snapshots in aptly."""
2
-import codecs
3
import datetime
4
import logging
5
from typing import Optional
@@ -37,7 +36,7 @@ def snapshot(cfg, args):
37
36
38
if args.debug: # pragma: no cover
39
dot_file = "/tmp/commands.dot"
40
- with codecs.open(dot_file, "w", "UTF-8") as fh_dot:
+ with open(dot_file, "w", encoding="UTF-8") as fh_dot:
41
fh_dot.write(command.Command.command_list_to_digraph(commands))
42
lg.info("Wrote command dependency tree graph to %s", dot_file)
43
0 commit comments