diff --git a/scripts/projects.py b/scripts/projects.py index 5628e8fd..46a553b9 100644 --- a/scripts/projects.py +++ b/scripts/projects.py @@ -288,7 +288,7 @@ def get_os(args = ""): if rr: err("failed to run ", cmd) continue - out = re.sub('\n', '', out) + out = re.sub('\n', '', out.decode('utf-8')) return out return "linux" @@ -512,7 +512,7 @@ def pkg_relations(rel_type, args_): dep = re.split('([=><]+)', spec) if args.no_version: dep = dep[:1] - dep = map(str.strip, dep) + dep = list(map(str.strip, dep)) if args.no_subpackages: dep[0] = re.sub('-dev$|-devel$|-run$', '', dep[0]) for i, item in enumerate(dep):