@@ -88,7 +88,7 @@ def get_config(src_path, target, toolchain_name):
88
88
config = Config (target , src_paths )
89
89
90
90
# If the 'target' argument is a string, convert it to a target instance
91
- if isinstance (target , str ):
91
+ if isinstance (target , basestring ):
92
92
try :
93
93
target = TARGET_MAP [target ]
94
94
except KeyError :
@@ -149,7 +149,7 @@ def build_project(src_path, build_path, target, toolchain_name,
149
149
config = config or Config (target , src_paths )
150
150
151
151
# If the 'target' argument is a string, convert it to a target instance
152
- if isinstance (target , str ):
152
+ if isinstance (target , basestring ):
153
153
try :
154
154
target = TARGET_MAP [target ]
155
155
except KeyError :
@@ -286,7 +286,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
286
286
config = Config (target , src_paths )
287
287
288
288
# If the 'target' argument is a string, convert it to a target instance
289
- if isinstance (target , str ):
289
+ if isinstance (target , basestring ):
290
290
try :
291
291
target = TARGET_MAP [target ]
292
292
except KeyError :
0 commit comments