From 5a56f2667d0d639064db2d37ff00bad6c37de025 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sat, 12 Jul 2014 22:24:02 -0400 Subject: [PATCH] flawfinder: Simplify string check --- flawfinder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flawfinder b/flawfinder index 26ad8e0..6272519 100755 --- a/flawfinder +++ b/flawfinder @@ -156,7 +156,7 @@ def is_svn_diff(sLine): return False def is_gnu_diff(sLine): - if (sLine.find('--- ') == 0): + if sLine.startswith('--- '): return True return False