util: futurize gnunet-qr
authorng0 <ng0@n0.is>
Tue, 12 Feb 2019 10:50:13 +0000 (10:50 +0000)
committerng0 <ng0@n0.is>
Tue, 12 Feb 2019 10:50:13 +0000 (10:50 +0000)
Signed-off-by: ng0 <ng0@n0.is>
src/util/gnunet-qr.py.in

index a5918fdf85f4365765803f5ed55fd219ca79e4f7..6c9d208f7fc803c5a35460ec78c9db4fa46cad0e 100755 (executable)
@@ -1,4 +1,6 @@
 #!@PYTHON@
+from __future__ import print_function
+from builtins import str
 import sys
 import getopt
 import subprocess
@@ -100,7 +102,7 @@ if __name__ == '__main__':
                         cmd += " " + str(a)
                 if (verbose):
                         print('Running `' + cmd +'`')
-                res=subprocess.call(args)
+                res = subprocess.call(args)
                 if (0 != res):
                         print('Failed to add URI ' + str(symbol.data))
                 else: