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:
David A. Wheeler 2014-07-29 08:29:02 -04:00
parent bc5eef939f
commit f74076c2fa
1 changed files with 1 additions and 1 deletions

View File

@ -1415,7 +1415,7 @@ def process_c_file(f, patch_infos):
hit.parameters = extract_c_parameters(text, endpos)
if hit.extract_lookahead:
hit.lookahead = text[startpos:startpos+max_lookahead]
apply(hit.hook, (hit, ))
hit.hook(hit)
elif p_digits.match(c):
while i<len(text) and p_digits.match(text[i]): # Process a number.
i = i + 1