From 193a797a5eef5b0068ca5d7bc4af1b8a89692d90 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Sat, 21 Oct 2017 20:35:47 +0200 Subject: [PATCH] tools/debpydeb: port to python3 --- tools/debpydep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/debpydep.py b/tools/debpydep.py index 3df79ce5c4..506b6448e9 100755 --- a/tools/debpydep.py +++ b/tools/debpydep.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function @@ -35,6 +35,7 @@ p = subprocess.Popen(['/usr/bin/dpkg', '-S', f], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if p.wait() == 0: for line in p.stdout.readlines(): + line = line.decode('utf-8') dependencies.add(line.strip().split(':')[0]) else: print('not found: %s' % f) -- GitLab