summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--waf_libbsd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py
index 0972cf2c..bbc8b42c 100644
--- a/waf_libbsd.py
+++ b/waf_libbsd.py
@@ -33,6 +33,11 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
+# Python 3 does no longer know the basestring class. Catch that.
+try:
+ basestring
+except NameError:
+ basestring = (str, bytes)
import os
import sys