diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-10-11 15:06:25 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-19 20:48:25 +0200 |
commit | 7dc5973bf12919d2d35230844beabe558d4faa00 (patch) | |
tree | 88d6128a911d2ec3b9a72d8e45d56fc2b250c714 /src/v8/0014-Fix-deprecated-Python-code.patch | |
parent | 4dc25c1f2995a5e02da47f0f6f3522af9eb6f78c (diff) |
Update V8
Change-Id: I7a9da7dbb2116a441788407d60ed10155cded941
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/v8/0014-Fix-deprecated-Python-code.patch')
-rw-r--r-- | src/v8/0014-Fix-deprecated-Python-code.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/v8/0014-Fix-deprecated-Python-code.patch b/src/v8/0014-Fix-deprecated-Python-code.patch deleted file mode 100644 index 9745a5c129..0000000000 --- a/src/v8/0014-Fix-deprecated-Python-code.patch +++ /dev/null @@ -1,51 +0,0 @@ -From ed5cc903d70f73780e5985e7d2de33f6b8d86402 Mon Sep 17 00:00:00 2001 -From: Kent Hansen <kent.hansen@nokia.com> -Date: Fri, 2 Sep 2011 12:03:09 +0200 -Subject: [PATCH 14/16] Fix deprecated Python code - -Needed to make the scripts run on Python 3, which is the -default python interpreter on some newer distros. - -Patch from http://code.google.com/p/v8/issues/detail?id=1391 ---- - tools/js2c.py | 4 ++-- - tools/jsmin.py | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tools/js2c.py b/tools/js2c.py -index 2da132f..d13d53d 100755 ---- a/tools/js2c.py -+++ b/tools/js2c.py -@@ -187,14 +187,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 = 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))) -diff --git a/tools/jsmin.py b/tools/jsmin.py -index 646bf14..395441b 100644 ---- a/tools/jsmin.py -+++ b/tools/jsmin.py -@@ -154,7 +154,7 @@ class JavaScriptMinifier(object): - return var_name - while True: - identifier_first_char = self.identifier_counter % 52 -- identifier_second_char = self.identifier_counter / 52 -+ identifier_second_char = self.identifier_counter // 52 - new_identifier = self.CharFromNumber(identifier_first_char) - if identifier_second_char != 0: - new_identifier = ( --- -1.7.4.4 - |