summaryrefslogtreecommitdiff
path: root/deps/v8/infra/testing/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/infra/testing/PRESUBMIT.py')
-rw-r--r--deps/v8/infra/testing/PRESUBMIT.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/infra/testing/PRESUBMIT.py b/deps/v8/infra/testing/PRESUBMIT.py
index d8047bc244..b8e059724e 100644
--- a/deps/v8/infra/testing/PRESUBMIT.py
+++ b/deps/v8/infra/testing/PRESUBMIT.py
@@ -11,6 +11,10 @@ For simplicity, we check all pyl files on any changes in this folder.
import ast
import os
+try:
+ basestring # Python 2
+except NameError: # Python 3
+ basestring = str
SUPPORTED_BUILDER_SPEC_KEYS = [
'swarming_dimensions',