From: ng0 Date: Tue, 26 Feb 2019 10:48:32 +0000 (+0000) Subject: Add test for future in gnunet-qr.py. pylint will probably scream, but this should... X-Git-Tag: v0.11.0~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3a9ff622b9351604f7d9fa35a01bade8cfa7eef;p=oweals%2Fgnunet.git Add test for future in gnunet-qr.py. pylint will probably scream, but this should satisfy safety checks --- 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 @@ -from __future__ import print_function -from builtins import str import sys +try: + from __future__ import print_function + from builtins import str +except ImportError as e: + print('Cannot import future modules, python2.7 future module required!') + sys.exit(1) import getopt import subprocess from sys import argv