summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2018-03-03 16:31:19 +0000
committerng0 <ng0@n0.is>2018-03-03 16:31:19 +0000
commit4db4adc0774b995901c2999a3556abb5b224f647 (patch)
tree844b7499a627daf3e2844f90f7a4b95e914c68c3 /src/fs
parent9f1edb2c382042236786a87fcdcfe308833c15d2 (diff)
src/fs/test_gnunet_fs_psd.py.in: Use py2 and py3.4+ compatible import
Diffstat (limited to 'src/fs')
-rwxr-xr-xsrc/fs/test_gnunet_fs_psd.py.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/test_gnunet_fs_psd.py.in b/src/fs/test_gnunet_fs_psd.py.in
index 87fcf1130..601797c82 100755
--- a/src/fs/test_gnunet_fs_psd.py.in
+++ b/src/fs/test_gnunet_fs_psd.py.in
@@ -1,6 +1,6 @@
#!@PYTHON@
# This file is part of GNUnet.
-# (C) 2010 Christian Grothoff (and other contributing authors)
+# (C) 2010, 2018 Christian Grothoff (and other contributing authors)
#
# GNUnet is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
@@ -23,6 +23,11 @@ import os
import subprocess
import re
import shutil
+try:
+ reload
+except NameError:
+ # python3.4:
+ from importlib import reload
# Force encoding to utf-8, as this test otherwise fails
# on some systems (see #5094).