diff options
author | ng0 <ng0@n0.is> | 2019-02-12 10:50:13 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-12 10:50:13 +0000 |
commit | db602e98ebd0de54c4948a0978110c8371587ab6 (patch) | |
tree | 16384cedd31eac0ca364d74bfc3f54d71e5cff6b /src/util | |
parent | 270b5b2ad07eb6c419078e4b7ceea9791c5625f6 (diff) | |
download | gnunet-db602e98ebd0de54c4948a0978110c8371587ab6.tar.gz gnunet-db602e98ebd0de54c4948a0978110c8371587ab6.zip |
util: futurize gnunet-qr
Signed-off-by: ng0 <ng0@n0.is>
Diffstat (limited to 'src/util')
-rwxr-xr-x | src/util/gnunet-qr.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/gnunet-qr.py.in b/src/util/gnunet-qr.py.in index a5918fdf8..6c9d208f7 100755 --- a/src/util/gnunet-qr.py.in +++ b/src/util/gnunet-qr.py.in | |||
@@ -1,4 +1,6 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHON@ |
2 | from __future__ import print_function | ||
3 | from builtins import str | ||
2 | import sys | 4 | import sys |
3 | import getopt | 5 | import getopt |
4 | import subprocess | 6 | import subprocess |
@@ -100,7 +102,7 @@ if __name__ == '__main__': | |||
100 | cmd += " " + str(a) | 102 | cmd += " " + str(a) |
101 | if (verbose): | 103 | if (verbose): |
102 | print('Running `' + cmd +'`') | 104 | print('Running `' + cmd +'`') |
103 | res=subprocess.call(args) | 105 | res = subprocess.call(args) |
104 | if (0 != res): | 106 | if (0 != res): |
105 | print('Failed to add URI ' + str(symbol.data)) | 107 | print('Failed to add URI ' + str(symbol.data)) |
106 | else: | 108 | else: |