waf: Fix python3 compatibility.

This commit is contained in:
Christian Mauderer
2018-05-17 20:35:19 +02:00
parent b2eb48c23b
commit e1d62e8ace

View File

@@ -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