##// END OF EJS Templates
releasenotes: fix remaining bytes/unicode issues caught by tests...
Augie Fackler -
r40271:a7cdd81f default
parent child Browse files
Show More
@@ -16,7 +16,6 b' from __future__ import absolute_import'
16 16 import difflib
17 17 import errno
18 18 import re
19 import sys
20 19 import textwrap
21 20
22 21 from mercurial.i18n import _
@@ -55,7 +54,7 b' DEFAULT_SECTIONS = ['
55 54 ]
56 55
57 56 RE_DIRECTIVE = re.compile('^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$')
58 RE_ISSUE = r'\bissue ?[0-9]{4,6}(?![0-9])\b'
57 RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'
59 58
60 59 BULLET_SECTION = _('Other Changes')
61 60
@@ -631,7 +630,7 b' def releasenotes(ui, repo, file_=None, *'
631 630 def debugparsereleasenotes(ui, path, repo=None):
632 631 """parse release notes and print resulting data structure"""
633 632 if path == '-':
634 text = sys.stdin.read()
633 text = pycompat.stdin.read()
635 634 else:
636 635 with open(path, 'rb') as fh:
637 636 text = fh.read()
General Comments 0
You need to be logged in to leave comments. Login now