summaryrefslogtreecommitdiffstats
path: root/waf_libbsd.py
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-17 20:35:19 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-24 11:20:34 +0200
commite1d62e8ace1b185cf6726ba44f393efb67945005 (patch)
tree75c1bde224eb542757a33fc3c50f19786a6f61de /waf_libbsd.py
parentb2eb48c23b86cb61504bb0324a94ea11df5653e8 (diff)
downloadrtems-libbsd-e1d62e8ace1b185cf6726ba44f393efb67945005.tar.bz2
waf: Fix python3 compatibility.
Diffstat (limited to 'waf_libbsd.py')
-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