fix bug in should_ignore function

This commit is contained in:
Alan Hamlett 2013-10-28 17:36:23 -07:00
parent a97984f4b9
commit 8244e3eb81
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ def parseArguments(argv):
def should_ignore(fileName, patterns):
if not patterns:
patterns = []
for pattern in patterns:
try:
compiled = re.compile(pattern, re.IGNORECASE)