gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 03/03: really fix #5243 -- it is fun to fix python


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 03/03: really fix #5243 -- it is fun to fix python2+3 for testsuite which will become irrelevant when in the future we only support 2.7 legacy and some range of 3.x
Date: Thu, 14 Jun 2018 20:52:25 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

commit dd926a1daf954cc8e67475f8916f69a9ccb4923c
Author: Nils Gillmann <address@hidden>
AuthorDate: Thu Jun 14 18:51:13 2018 +0000

    really fix #5243 -- it is fun to fix python2+3 for testsuite which will 
become irrelevant when in the future we only support 2.7 legacy and some range 
of 3.x
    
    Signed-off-by: Nils Gillmann <address@hidden>
---
 src/fs/test_gnunet_fs_psd.py.in | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/fs/test_gnunet_fs_psd.py.in b/src/fs/test_gnunet_fs_psd.py.in
index 0e191d4a4..4c91c6327 100755
--- a/src/fs/test_gnunet_fs_psd.py.in
+++ b/src/fs/test_gnunet_fs_psd.py.in
@@ -22,11 +22,15 @@ import subprocess
 import re
 import shutil
 try:
+    # Python 2.7
     reload
 except NameError:
-    # python3.4:
-    from importlib import reload
-
+    try:
+        # Python 3.4+:
+        from importlib import reload
+    except ImportError:
+        # Python 3.0 - 3.3
+        from imp import reload
 
 # Force encoding to utf-8, as this test otherwise fails
 # on some systems (see #5094).

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]