[rtems-libbsd commit] waf: Fix python3 compatibility.

Christian Mauderer christianm at rtems.org
Thu May 24 09:21:54 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    e1d62e8ace1b185cf6726ba44f393efb67945005
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e1d62e8ace1b185cf6726ba44f393efb67945005

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Thu May 17 20:35:19 2018 +0200

waf: Fix python3 compatibility.

---

 waf_libbsd.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/waf_libbsd.py b/waf_libbsd.py
index 0972cf2..bbc8b42 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




More information about the vc mailing list