From 2ea659146f80676c58987f14a32f8157535e7353 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Thu, 13 Apr 2017 15:06:31 +0100 Subject: 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 --- sources.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sources.py') 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) - -- cgit