File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
#
3
- # Copyright 2006-2008 the V8 project authors. All rights reserved.
3
+ # Copyright 2012 the V8 project authors. All rights reserved.
4
4
# Redistribution and use in source and binary forms, with or without
5
5
# modification, are permitted provided that the following conditions are
6
6
# met:
@@ -195,14 +195,14 @@ def ReadMacros(lines):
195
195
macro_match = MACRO_PATTERN .match (line )
196
196
if macro_match :
197
197
name = macro_match .group (1 )
198
- args = map ( string .strip , macro_match .group (2 ).split (',' ))
198
+ args = [ match .strip () for match in macro_match .group (2 ).split (',' )]
199
199
body = macro_match .group (3 ).strip ()
200
200
macros .append ((re .compile ("\\ b%s\\ (" % name ), TextMacro (args , body )))
201
201
else :
202
202
python_match = PYTHON_MACRO_PATTERN .match (line )
203
203
if python_match :
204
204
name = python_match .group (1 )
205
- args = map ( string .strip , python_match .group (2 ).split (',' ))
205
+ args = [ match .strip () for match in python_match .group (2 ).split (',' )]
206
206
body = python_match .group (3 ).strip ()
207
207
fun = eval ("lambda " + "," .join (args ) + ': ' + body )
208
208
macros .append ((re .compile ("\\ b%s\\ (" % name ), PythonMacro (args , fun )))
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python2.4
2
2
3
- # Copyright 2009 the V8 project authors. All rights reserved.
3
+ # Copyright 2012 the V8 project authors. All rights reserved.
4
4
# Redistribution and use in source and binary forms, with or without
5
5
# modification, are permitted provided that the following conditions are
6
6
# met:
@@ -154,7 +154,7 @@ def FindNewName(self, var_name):
154
154
return var_name
155
155
while True :
156
156
identifier_first_char = self .identifier_counter % 52
157
- identifier_second_char = self .identifier_counter / 52
157
+ identifier_second_char = self .identifier_counter // 52
158
158
new_identifier = self .CharFromNumber (identifier_first_char )
159
159
if identifier_second_char != 0 :
160
160
new_identifier = (
You can’t perform that action at this time.
0 commit comments