/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/grep/cmds.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-15 13:19:23 UTC
  • mfrom: (7027.9.2 python3-grep)
  • Revision ID: breezy.the.bot@gmail.com-20180715131923-v6hir5yjqa4n9yzl
Fix all but one of the grep plugin tests on python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-grep-all/+merge/349618

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
            re_flags |= re.IGNORECASE
204
204
 
205
205
        if not fixed_string:
206
 
            patternc = grep.compile_pattern(pattern, re_flags)
 
206
            patternc = grep.compile_pattern(pattern.encode(grep._user_encoding), re_flags)
207
207
 
208
208
        if color == 'always':
209
209
            show_color = True