aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/tools/rrs_distros.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-01-06 10:07:09 -0600
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:52 +1200
commit8fc103d3d6bf50496999685111be1d2e7b1334f7 (patch)
tree4e4d94fcc32106b34af126e1a9763915570b388d /rrs/tools/rrs_distros.py
parentd94a3524b246348348687ea6ecd5da74daeaccaf (diff)
downloadopenembedded-core-contrib-8fc103d3d6bf50496999685111be1d2e7b1334f7.tar.gz
rrs/tools/rrs_distros.py: Don't open files in binary mode
It ends on failures with Python 3.x when do a split method over binary data. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'rrs/tools/rrs_distros.py')
-rwxr-xr-xrrs/tools/rrs_distros.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrs/tools/rrs_distros.py b/rrs/tools/rrs_distros.py
index 60820f4e69..7b5610b37b 100755
--- a/rrs/tools/rrs_distros.py
+++ b/rrs/tools/rrs_distros.py
@@ -70,7 +70,7 @@ def search_package_in_distros(pkglst_dir, recipe, data):
else:
pn = recipe_name
- f = open(os.path.join(pkglst_dir, distro_file), "rb")
+ f = open(os.path.join(pkglst_dir, distro_file), "r")
for line in f:
(pkg, section) = line.split(":")
if pn == pkg: