Remove unnecessary invocation of "apply"
- Remove unnecessary invocation of "apply". Python 2.4 deprecated "apply", and Python 3 removes it.
This commit is contained in:
parent
bc5eef939f
commit
f74076c2fa
|
@ -1415,7 +1415,7 @@ def process_c_file(f, patch_infos):
|
||||||
hit.parameters = extract_c_parameters(text, endpos)
|
hit.parameters = extract_c_parameters(text, endpos)
|
||||||
if hit.extract_lookahead:
|
if hit.extract_lookahead:
|
||||||
hit.lookahead = text[startpos:startpos+max_lookahead]
|
hit.lookahead = text[startpos:startpos+max_lookahead]
|
||||||
apply(hit.hook, (hit, ))
|
hit.hook(hit)
|
||||||
elif p_digits.match(c):
|
elif p_digits.match(c):
|
||||||
while i<len(text) and p_digits.match(text[i]): # Process a number.
|
while i<len(text) and p_digits.match(text[i]): # Process a number.
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
Loading…
Reference in New Issue