From 48bad067787c31eaee6dde8ffff702286d12465d Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sun, 30 Jul 2017 20:07:05 -0400 Subject: [PATCH] Change old-style class to "new"-style class Signed-off-by: David A. Wheeler --- flawfinder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flawfinder b/flawfinder index c8373c5..7566229 100755 --- a/flawfinder +++ b/flawfinder @@ -351,7 +351,7 @@ link_cwe_pattern = re.compile(r'(CWE-([1-9][0-9]+))([,()])') find_cwe_pattern = re.compile(r'\(CWE-[^)]*\)') -class Hit: +class Hit(object): """ Each instance of Hit is a warning of some kind in a source code file. See the rulesets, which define the conditions for triggering a hit. @@ -365,9 +365,9 @@ class Hit: Use "" if you don't have a better category. url: URL fragment reference. other: A dictionary with other settings. - + Other settings usually set: - + name: function name parameter: the function parameters (0th parameter null) input: set to 1 if the function inputs from external sources.