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
commit03df6d7ffc27bf1ea31e5203b6534ed5ab6a6e91 (patch)
treeca2914c3f3779b2f6fe205911b3f2e3149ae62ad /bin/apt-update-file
parentaabfc8b9a152230ccabf0cffd8b824a9fe2ca3a7 (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