Skip to content

Commit faec015

Browse files
committed
ci: Py3 fix
1 parent cf23d0d commit faec015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/ci_lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def make_containers(name_prefix='', port_offset=0):
220220

221221
def proc_is_docker(pid):
222222
try:
223-
fp = open('/proc/%s/cgroup' % (pid,), 'rb')
223+
fp = open('/proc/%s/cgroup' % (pid,), 'r')
224224
except IOError:
225225
return False
226226

@@ -236,7 +236,7 @@ def get_interesting_procs(container_name=None):
236236
args = ['docker', 'exec', container_name] + args
237237

238238
out = []
239-
for line in subprocess__check_output(args).splitlines():
239+
for line in subprocess__check_output(args).decode().splitlines():
240240
ppid, pid, comm, rest = line.split(None, 3)
241241
if (
242242
(

0 commit comments

Comments
 (0)