diff options
author | ng0 <ng0@n0.is> | 2019-02-26 10:48:32 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-26 10:48:32 +0000 |
commit | f3a9ff622b9351604f7d9fa35a01bade8cfa7eef (patch) | |
tree | 35787ada21f6c81e4159f1b33860dcec8a975166 /src | |
parent | 627b461e6784dc8c56a29bf4a761176321471e02 (diff) | |
download | gnunet-f3a9ff622b9351604f7d9fa35a01bade8cfa7eef.tar.gz gnunet-f3a9ff622b9351604f7d9fa35a01bade8cfa7eef.zip |
Add test for future in gnunet-qr.py. pylint will probably scream, but this should satisfy safety checks
Diffstat (limited to 'src')
-rwxr-xr-x | src/util/gnunet-qr.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util/gnunet-qr.py b/src/util/gnunet-qr.py index bf35b3a7e..c0518854d 100755 --- a/src/util/gnunet-qr.py +++ b/src/util/gnunet-qr.py | |||
@@ -1,6 +1,10 @@ | |||
1 | from __future__ import print_function | ||
2 | from builtins import str | ||
3 | import sys | 1 | import sys |
2 | try: | ||
3 | from __future__ import print_function | ||
4 | from builtins import str | ||
5 | except ImportError as e: | ||
6 | print('Cannot import future modules, python2.7 future module required!') | ||
7 | sys.exit(1) | ||
4 | import getopt | 8 | import getopt |
5 | import subprocess | 9 | import subprocess |
6 | from sys import argv | 10 | from sys import argv |