From 3f46c9569c260a972c4790e2510510b9d9d898c5 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 4 Nov 2018 20:16:44 +0000 Subject: [PATCH] tests: 3.x syntax compat for tests/data/stubs/ --- tests/data/stubs/stub-lxc-info.py | 2 +- tests/data/stubs/stub-lxc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/data/stubs/stub-lxc-info.py b/tests/data/stubs/stub-lxc-info.py index bcbc36a5..480bf266 100755 --- a/tests/data/stubs/stub-lxc-info.py +++ b/tests/data/stubs/stub-lxc-info.py @@ -1,4 +1,4 @@ #!/usr/bin/env python # Mainly for use in stubconnections/kubectl.yml -print 'PID: 1' +print('PID: 1') diff --git a/tests/data/stubs/stub-lxc.py b/tests/data/stubs/stub-lxc.py index 03572cac..9d14090a 100755 --- a/tests/data/stubs/stub-lxc.py +++ b/tests/data/stubs/stub-lxc.py @@ -5,7 +5,7 @@ import os # setns.py fetching leader PID. if sys.argv[1] == 'info': - print 'Pid: 1' + print('Pid: 1') sys.exit(0) os.environ['ORIGINAL_ARGV'] = repr(sys.argv)