aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils/watch_dirs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/run_tests/python_utils/watch_dirs.py')
-rwxr-xr-xtools/run_tests/python_utils/watch_dirs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/run_tests/python_utils/watch_dirs.py b/tools/run_tests/python_utils/watch_dirs.py
index d2ad303a07..f2f1c006df 100755
--- a/tools/run_tests/python_utils/watch_dirs.py
+++ b/tools/run_tests/python_utils/watch_dirs.py
@@ -15,13 +15,14 @@
import os
import time
+from six import string_types
class DirWatcher(object):
"""Helper to watch a (set) of directories for modifications."""
def __init__(self, paths):
- if isinstance(paths, basestring):
+ if isinstance(paths, string_types):
paths = [paths]
self._done = False
self.paths = list(paths)