@@ -88,7 +88,7 @@ def get_config(src_path, target, toolchain_name):
8888 config = Config (target , src_paths )
8989
9090 # If the 'target' argument is a string, convert it to a target instance
91- if isinstance (target , str ):
91+ if isinstance (target , basestring ):
9292 try :
9393 target = TARGET_MAP [target ]
9494 except KeyError :
@@ -149,7 +149,7 @@ def build_project(src_path, build_path, target, toolchain_name,
149149 config = config or Config (target , src_paths )
150150
151151 # If the 'target' argument is a string, convert it to a target instance
152- if isinstance (target , str ):
152+ if isinstance (target , basestring ):
153153 try :
154154 target = TARGET_MAP [target ]
155155 except KeyError :
@@ -286,7 +286,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
286286 config = Config (target , src_paths )
287287
288288 # If the 'target' argument is a string, convert it to a target instance
289- if isinstance (target , str ):
289+ if isinstance (target , basestring ):
290290 try :
291291 target = TARGET_MAP [target ]
292292 except KeyError :
0 commit comments