From 583e787ca11d283537619df3a75506418e76ddce Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Thu, 11 Apr 2019 09:33:15 -0500 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: theotherjimmy --- tools/build_release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build_release.py b/tools/build_release.py index 0c79b550f2..83e7d90f99 100644 --- a/tools/build_release.py +++ b/tools/build_release.py @@ -20,7 +20,7 @@ from os.path import join, abspath, dirname, normpath from optparse import OptionParser import json from shutil import copy -from past.builtins import str +from past.builtins import basestring # Be sure that the tools directory is in the search path ROOT = abspath(join(dirname(__file__), "..")) @@ -111,7 +111,7 @@ if __name__ == '__main__': test_names = [] for test_id in list(TEST_MAP.keys()): # Prevents tests with multiple source dirs from being checked - if isinstance(TEST_MAP[test_id].source_dir, str): + if isinstance(TEST_MAP[test_id].source_dir, basestring): test_path = normpath(TEST_MAP[test_id].source_dir) for directory in directories: if directory in test_path: