From 040056377b0f2975a035178854fd37a42d912be6 Mon Sep 17 00:00:00 2001 From: Brian May Date: Sun, 15 Jul 2018 09:37:12 +1000 Subject: Fix print statements for Python 3.6 compatibility --- bin/apt-update-file | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/apt-update-file') diff --git a/bin/apt-update-file b/bin/apt-update-file index 081b6211ca..244ae4436d 100755 --- a/bin/apt-update-file +++ b/bin/apt-update-file @@ -1,6 +1,7 @@ #!/usr/bin/python # This script is mainly used to demo the updateFile function. +from __future__ import print_function import os import os.path import string @@ -28,7 +29,7 @@ if len(sys.argv) != 3: try: debian_support.updateFile(sys.argv[1], sys.argv[2]) except: - print >>sys.stderr, \ - "error: in download of %s to %s:" % (repr(sys.argv[1]), - repr(sys.argv[2])) + print("error: in download of %s to %s:" % (repr(sys.argv[1]), + repr(sys.argv[2])), + file=sys.stderr) raise -- cgit v1.2.3