~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/glob.py

  • Committer: Kent Gibson
  • Date: 2006-11-28 17:24:48 UTC
  • mto: (2178.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2179.
  • Revision ID: warthog618@gmail.com-20061128172448-qxgw64v9p555asin
Reverted case-insensitive matches on case-insensitive platforms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
    patterns.
167
167
    """
168
168
    def __init__(self, patterns):
169
 
        self._flags = re.UNICODE
170
 
        if os.path.normcase('Ab') != 'Ab':
171
 
            self._flags |= re.IGNORECASE
172
169
        self._regex_patterns = []
173
170
        path_patterns = []
174
171
        base_patterns = []
190
187
        while patterns:
191
188
            grouped_rules = ['(%s)' % translator(pat) for pat in patterns[:99]]
192
189
            joined_rule = '%s(?:%s)$' % (prefix, '|'.join(grouped_rules))
193
 
            self._regex_patterns.append((re.compile(joined_rule, self._flags), 
 
190
            self._regex_patterns.append((re.compile(joined_rule, re.UNICODE), 
194
191
                patterns[:99]))
195
192
            patterns = patterns[99:]
196
193