summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index e41d81a317..82a2be1224 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -512,7 +512,7 @@ class PythonRecipeHandler(RecipeHandler):
512 except (OSError, subprocess.CalledProcessError): 512 except (OSError, subprocess.CalledProcessError):
513 pass 513 pass
514 else: 514 else:
515 for line in dep_output.decode('utf-8').splitlines(): 515 for line in dep_output.splitlines():
516 line = line.rstrip() 516 line = line.rstrip()
517 dep, filename = line.split('\t', 1) 517 dep, filename = line.split('\t', 1)
518 if filename.endswith('/setup.py'): 518 if filename.endswith('/setup.py'):
@@ -591,7 +591,7 @@ class PythonRecipeHandler(RecipeHandler):
591 if 'stderr' not in popenargs: 591 if 'stderr' not in popenargs:
592 popenargs['stderr'] = subprocess.STDOUT 592 popenargs['stderr'] = subprocess.STDOUT
593 try: 593 try:
594 return subprocess.check_output(cmd, **popenargs) 594 return subprocess.check_output(cmd, **popenargs).decode('utf-8')
595 except OSError as exc: 595 except OSError as exc:
596 logger.error('Unable to run `{}`: {}', ' '.join(cmd), exc) 596 logger.error('Unable to run `{}`: {}', ' '.join(cmd), exc)
597 raise 597 raise