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 97a9e02 commit 430b478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyaptly/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Aptly mirror/snapshot managment automation."""
import argparse
import codecs
import logging
import sys

Expand Down Expand Up @@ -84,7 +83,7 @@ def main(argv=None):
_logging_setup = True # noqa
lg.debug("Args: %s", vars(args))

with codecs.open(args.config, "r", encoding="UTF-8") as cfgfile:
with open(args.config, "r", encoding="UTF-8") as cfgfile:
cfg = yaml.load(cfgfile, Loader=yaml.FullLoader)
state_reader.state.read()

Expand Down

0 comments on commit 430b478

Please sign in to comment.