diff options
Diffstat (limited to 'tests/python')
-rw-r--r-- | tests/python/batch_import.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/python/batch_import.py b/tests/python/batch_import.py index dea08b45c3a..8fc679a7c15 100644 --- a/tests/python/batch_import.py +++ b/tests/python/batch_import.py @@ -78,7 +78,9 @@ def batch_import(operator="", path = os.path.abspath(path) match_upper = match.upper() - pattern_match = lambda a: fnmatch.fnmatchcase(a.upper(), match_upper) + + def pattern_match(a): + return fnmatch.fnmatchcase(a.upper(), match_upper) def file_generator(path): for dirpath, dirnames, filenames in os.walk(path): |