~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/globbing.py

  • Committer: Kent Gibson
  • Date: 2006-12-08 12:59:11 UTC
  • mto: (2178.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2179.
  • Revision ID: warthog618@gmail.com-20061208125911-wsnbxy7aydzjb47s
Implement JAM's review suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import re
24
24
 
25
25
from bzrlib.trace import (
26
 
    mutter, 
27
26
    warning
28
27
    )
29
28
 
103
102
 
104
103
def _invalid_regex(repl):
105
104
    def _(m):
106
 
        warning(u"'%s' not allowed withing regexp. Replacing with '%s'" %
107
 
                (m, repl))
 
105
        warning(u"'%s' not allowed within a regular expression. "
 
106
                "Replacing with '%s'" % (m, repl))
108
107
        return repl
109
108
    return _
110
109