diff options
author | Brian May <brian@linuxpenguins.xyz> | 2018-07-15 09:37:12 +1000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2018-08-06 16:57:35 +1000 |
commit | 040056377b0f2975a035178854fd37a42d912be6 (patch) | |
tree | 9adc0dd1fb299e0afcb024d403ca1f40356455e0 /bin/apt-update-file | |
parent | 33e88666be616576461487922d61985da4199776 (diff) |
Fix print statements for Python 3.6 compatibility
Diffstat (limited to 'bin/apt-update-file')
-rwxr-xr-x | bin/apt-update-file | 7 |
1 files changed, 4 insertions, 3 deletions
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 |