summaryrefslogtreecommitdiffstats
path: root/bin/apt-update-file
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-07-15 09:37:12 +1000
committerBrian May <brian@linuxpenguins.xyz>2018-08-06 16:57:35 +1000
commitdbfa93c62253aab8e1ceb1c1ed578ae88c9dc8f7 (patch)
tree5eafb3a2eed75924c515b4bf0250d83d9fb67400 /bin/apt-update-file
parent4b9d6d320f02267e1d5c2d6c21c69314197adc8e (diff)
Fix print statements for Python 3.6 compatibility
Diffstat (limited to 'bin/apt-update-file')
-rwxr-xr-xbin/apt-update-file7
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy