for consistency, make ant_glob case sensitive everywhere by default

This commit is contained in:
Thomas Nagy 2012-04-16 20:20:49 +02:00
parent 0328aa6847
commit 264b0ab5f5
1 changed files with 2 additions and 3 deletions

View File

@ -528,7 +528,7 @@ class Node(object):
:type remove: bool
:param maxdepth: maximum depth of recursion
:type maxdepth: int
:param ignorecase: ignore case while matching (True by default on Windows, False by default elsewhere)
:param ignorecase: ignore case while matching (False by default)
:type ignorecase: bool
"""
@ -537,8 +537,7 @@ class Node(object):
excl = kw.get('excl', exclude_regs)
incl = k and k[0] or kw.get('incl', '**')
ignc = kw.get('ignorecase', Utils.is_win32)
reflags = ignc and re.I or 0
reflags = kw.get('ignorecase', 0) and re.I
def to_pat(s):
lst = Utils.to_list(s)