equal
deleted
inserted
replaced
2368 if opts.get('ignore_case'): |
2368 if opts.get('ignore_case'): |
2369 reflags |= re.I |
2369 reflags |= re.I |
2370 try: |
2370 try: |
2371 regexp = util.re.compile(pattern, reflags) |
2371 regexp = util.re.compile(pattern, reflags) |
2372 except re.error as inst: |
2372 except re.error as inst: |
2373 ui.warn(_("grep: invalid match pattern: %s\n") % inst) |
2373 ui.warn(_("grep: invalid match pattern: %s\n") % pycompat.bytestr(inst)) |
2374 return 1 |
2374 return 1 |
2375 sep, eol = ':', '\n' |
2375 sep, eol = ':', '\n' |
2376 if opts.get('print0'): |
2376 if opts.get('print0'): |
2377 sep = eol = '\0' |
2377 sep = eol = '\0' |
2378 |
2378 |