Skip to content

Commit beb83f5

Browse files
author
Travis Clarke
committed
experiment/get_job_pods - upgrade py2 -> py3
1 parent 3cbee41 commit beb83f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

experiment/get_job_pods.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2017 The Kubernetes Authors.
44
#
@@ -25,7 +25,7 @@
2525
# will get you something like:
2626
# pull-kubernetes-bazel-test: ['c9e634a5-cbe6-11e7-9149-0a580a6c0216']
2727

28-
from __future__ import print_function
28+
2929

3030
from argparse import ArgumentParser
3131
from collections import defaultdict
@@ -36,7 +36,7 @@ def get_pods_json(show_all):
3636
cmd = ["kubectl", "get", "po", "-n=test-pods", "-o=json"]
3737
if show_all:
3838
cmd.append("--show-all")
39-
res = subprocess.check_output(cmd)
39+
res = subprocess.check_output(cmd, encoding='utf-8')
4040
return json.loads(res)["items"]
4141

4242
def get_pods_by_job(show_all):

0 commit comments

Comments
 (0)