mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 21:02:33 +08:00
waf: Fix python3 compatibility.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user