aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/js2c.py
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-13 15:34:45 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-14 01:37:13 +0200
commit50464cd4f49e40f4fe792ff46a81052319a222e9 (patch)
tree1fe524b2e6c0eb3c459142cd27539f88e1a3f63c /deps/v8/tools/js2c.py
parent09be360a0fee2c7619bae8c4248f9ed3d79d1b30 (diff)
downloadandroid-node-v8-50464cd4f49e40f4fe792ff46a81052319a222e9.tar.gz
android-node-v8-50464cd4f49e40f4fe792ff46a81052319a222e9.tar.bz2
android-node-v8-50464cd4f49e40f4fe792ff46a81052319a222e9.zip
v8: upgrade to v3.11.10
Diffstat (limited to 'deps/v8/tools/js2c.py')
-rw-r--r--deps/v8/tools/js2c.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/tools/js2c.py b/deps/v8/tools/js2c.py
index fa559f362c..d06cbe47a9 100644
--- a/deps/v8/tools/js2c.py
+++ b/deps/v8/tools/js2c.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2006-2008 the V8 project authors. All rights reserved.
+# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
@@ -195,14 +195,14 @@ def ReadMacros(lines):
macro_match = MACRO_PATTERN.match(line)
if macro_match:
name = macro_match.group(1)
- args = map(string.strip, macro_match.group(2).split(','))
+ args = [match.strip() for match in macro_match.group(2).split(',')]
body = macro_match.group(3).strip()
macros.append((re.compile("\\b%s\\(" % name), TextMacro(args, body)))
else:
python_match = PYTHON_MACRO_PATTERN.match(line)
if python_match:
name = python_match.group(1)
- args = map(string.strip, python_match.group(2).split(','))
+ args = [match.strip() for match in python_match.group(2).split(',')]
body = python_match.group(3).strip()
fun = eval("lambda " + ",".join(args) + ': ' + body)
macros.append((re.compile("\\b%s\\(" % name), PythonMacro(args, fun)))