Skip to content

Commit

Permalink
More fixes for UTF-8 characters in manifests files
Browse files Browse the repository at this point in the history
  • Loading branch information
pyhalov committed Mar 10, 2020
1 parent 900da3c commit 0689757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/client/transport/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def _prefetch_manifests_list(self, mxfr, mlist, excludes=misc.EmptyI):
continue

try:
mf = open(dl_path)
mf = open(dl_path, "r", encoding="UTF-8")
mcontent = mf.read()
mf.close()
manifest.FactoredManifest(fmri,
Expand Down Expand Up @@ -1776,7 +1776,7 @@ def _verify_manifest(self, fmri, mfstpath=None, content=None, pub=None):
return False

if mfstpath:
mf = open(mfstpath)
mf = open(mfstpath, "r", encoding="UTF-8")
mcontent = mf.read()
mf.close()
elif content is not None:
Expand Down

0 comments on commit 0689757

Please sign in to comment.