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 | dbfa93c62253aab8e1ceb1c1ed578ae88c9dc8f7 (patch) | |
tree | 5eafb3a2eed75924c515b4bf0250d83d9fb67400 /bin/apt-update-file | |
parent | 4b9d6d320f02267e1d5c2d6c21c69314197adc8e (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 |