diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-13 08:09:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-13 08:17:00 +0300 |
commit | 616eb6818fdcf074eae31daa47c2ed581638b672 (patch) | |
tree | 1ac98eec7d3c15a4dd04db20e93150622a2c3319 /tests | |
parent | 1ae2098a6e04359b82e52d239906f7e3f86c949c (diff) |
cleanup
Diffstat (limited to 'tests')
-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): |