From f74076c2fac68a0ab115f9b928e8b77960ec7072 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Tue, 29 Jul 2014 08:29:02 -0400 Subject: [PATCH] Remove unnecessary invocation of "apply" - Remove unnecessary invocation of "apply". Python 2.4 deprecated "apply", and Python 3 removes it. --- flawfinder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flawfinder b/flawfinder index 922b310..56f9cc5 100755 --- a/flawfinder +++ b/flawfinder @@ -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