From e1d62e8ace1b185cf6726ba44f393efb67945005 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Thu, 17 May 2018 20:35:19 +0200 Subject: waf: Fix python3 compatibility. --- waf_libbsd.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3