summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2017-04-13 15:06:31 +0100
committerCédric Bosdonnat <cbosdonnat@suse.com>2017-04-14 10:29:40 +0200
commit2ea659146f80676c58987f14a32f8157535e7353 (patch)
tree38f6d67de11a2795c827c9af33a149e6f7dab44f
parentf930f38143ab2dc5fd4b570f3a7bcf599ed9b344 (diff)
downloadvirt-bootstrap.git-2ea659146f80676c58987f14a32f8157535e7353.tar.gz
virt-bootstrap.git-2ea659146f80676c58987f14a32f8157535e7353.tar.xz
virt-bootstrap.git-2ea659146f80676c58987f14a32f8157535e7353.zip
Python 3/2 compatibility: use print with brackets
The `print` function in Python3 is used with brackets.[1] This syntax is also accepted in Python2.[2] [1] https://docs.python.org/3.5/library/functions.html#print [2] https://docs.python.org/2.7/library/functions.html#print
-rw-r--r--sources.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sources.py b/sources.py
index 886ca27..4e98610 100644
--- a/sources.py
+++ b/sources.py
@@ -87,7 +87,7 @@ class DockerSource:
for layer in manifest['layers']:
sum_type, sum_value = layer['digest'].split(':')
layer_file = "%s/%s.tar" % (tmpDest, sum_value)
- print 'layer_file: (%s) %s' % (sum_type, layer_file)
+ print('layer_file: (%s) %s' % (sum_type, layer_file))
# Verify the checksum
if not checksum(layer_file, sum_type, sum_value):
@@ -101,4 +101,3 @@ class DockerSource:
raise
shutil.rmtree(tmpDest)
-