Skip to content

Commit 5fc8b57

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge pull request ARMmbed#9964 from bridadan/fix_references_to_basestring
Add imports of basestring for python 3
2 parents f0f14d7 + 0105395 commit 5fc8b57

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tools/build_release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from optparse import OptionParser
2222
import json
2323
from shutil import copy
24+
from past.builtins import basestring
2425

2526
# Be sure that the tools directory is in the search path
2627
ROOT = abspath(join(dirname(__file__), ".."))

tools/export/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import copy
2525
from shutil import rmtree, copyfile
2626
import zipfile
27+
from past.builtins import basestring
2728

2829
from ..resources import Resources, FileType, FileRef
2930
from ..config import ALLOWED_FEATURES

tools/targets/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from copy import copy
3030
from yaml import dump_all
3131
import argparse
32+
from past.builtins import basestring
3233

3334
from tools.targets import Target, set_targets_json_location, TARGET_MAP
3435

@@ -274,4 +275,3 @@ def main():
274275

275276
if __name__ == "__main__":
276277
sys.exit(main())
277-

0 commit comments

Comments
 (0)