diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py')
-rw-r--r-- | chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py b/chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py index a7a2b11f3f0..a5b94872808 100644 --- a/chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py +++ b/chromium/third_party/blink/renderer/bindings/scripts/web_idl/make_copy.py @@ -3,6 +3,14 @@ # found in the LICENSE file. +import sys + +# TODO(crbug.com/1174969): Remove this once Python2 is obsoleted. +if sys.version_info.major != 2: + long = int + basestring = str + + def make_copy(obj, memo=None): """ Creates a copy of the given object, which should be an IR or part of IR. |