[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Add test for future in gnun
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Add test for future in gnunet-qr.py. pylint will probably scream, but this should satisfy safety checks |
Date: |
Tue, 26 Feb 2019 11:48:39 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new f3a9ff622 Add test for future in gnunet-qr.py. pylint will probably
scream, but this should satisfy safety checks
f3a9ff622 is described below
commit f3a9ff622b9351604f7d9fa35a01bade8cfa7eef
Author: ng0 <address@hidden>
AuthorDate: Tue Feb 26 10:48:32 2019 +0000
Add test for future in gnunet-qr.py. pylint will probably scream, but this
should satisfy safety checks
---
src/util/gnunet-qr.py | 8 ++++++--
1 file 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 @@
-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
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Add test for future in gnunet-qr.py. pylint will probably scream, but this should satisfy safety checks,
gnunet <=