~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/globbing.py

  • Committer: Parth Malwankar
  • Date: 2010-07-09 16:16:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5340.
  • Revision ID: parth.malwankar@gmail.com-20100709161611-d9w6eiwze2ilk8dk
fixes errors.InvalidPattern to work on Python2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
                if match:
218
218
                    return patterns[match.lastindex -1]
219
219
        except errors.InvalidPattern, e:
220
 
            # We can't show the default e.message to the user as thats for
 
220
            # We can't show the default e.msg to the user as thats for
221
221
            # the combined pattern we sent to regex. Instead we indicate to
222
222
            # the user that an ignore file needs fixing.
223
 
            mutter('Invalid pattern found in regex: %s.', e.message)
224
 
            e.message = "File ~/.bazaar/ignore or .bzrignore contains errors."
 
223
            mutter('Invalid pattern found in regex: %s.', e.msg)
 
224
            e.msg = "File ~/.bazaar/ignore or .bzrignore contains errors."
225
225
            raise e
226
226
        return None
227
227