diff options
Diffstat (limited to 'src/fs')
-rwxr-xr-x | src/fs/test_gnunet_fs_psd.py.in | 10 |
1 files 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 | |||
22 | import re | 22 | import re |
23 | import shutil | 23 | import shutil |
24 | try: | 24 | try: |
25 | # Python 2.7 | ||
25 | reload | 26 | reload |
26 | except NameError: | 27 | except NameError: |
27 | # python3.4: | 28 | try: |
28 | from importlib import reload | 29 | # Python 3.4+: |
29 | 30 | from importlib import reload | |
31 | except ImportError: | ||
32 | # Python 3.0 - 3.3 | ||
33 | from imp import reload | ||
30 | 34 | ||
31 | # Force encoding to utf-8, as this test otherwise fails | 35 | # Force encoding to utf-8, as this test otherwise fails |
32 | # on some systems (see #5094). | 36 | # on some systems (see #5094). |