aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/binrepo.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-11-01 21:29:18 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-11-01 21:29:18 +0100
commit11c8e8abb541f4877a57c284342a6540be8478ae (patch)
tree1b7c4f48b74fc5d7c37ae7235b5451e1abc559ec /MgaRepo/binrepo.py
parent42e337ed4f146e6cb97d2c8acacfafba64416938 (diff)
downloadmgarepo-11c8e8abb541f4877a57c284342a6540be8478ae.tar
mgarepo-11c8e8abb541f4877a57c284342a6540be8478ae.tar.gz
mgarepo-11c8e8abb541f4877a57c284342a6540be8478ae.tar.bz2
mgarepo-11c8e8abb541f4877a57c284342a6540be8478ae.tar.xz
mgarepo-11c8e8abb541f4877a57c284342a6540be8478ae.zip
Be sure that files are read even if encoded in utf-8
Diffstat (limited to 'MgaRepo/binrepo.py')
-rw-r--r--MgaRepo/binrepo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index f14de52..89679b0 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -125,7 +125,7 @@ def import_binaries(topdir, pkgname):
def parse_sources(path):
entries = {}
try:
- f = open(path)
+ f = open(path, encoding="utf-8")
except IOError:
return []