Skip to content
Snippets Groups Projects
Commit a7cdd81f authored by Augie Fackler's avatar Augie Fackler
Browse files

releasenotes: fix remaining bytes/unicode issues caught by tests

All tests now pass.

Differential Revision: https://phab.mercurial-scm.org/D5054
parent 3fc2ef49
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@
import difflib
import errno
import re
import sys
import textwrap
from mercurial.i18n import _
......@@ -55,7 +54,7 @@
]
RE_DIRECTIVE = re.compile('^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$')
RE_ISSUE = r'\bissue ?[0-9]{4,6}(?![0-9])\b'
RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'
BULLET_SECTION = _('Other Changes')
......@@ -631,7 +630,7 @@
def debugparsereleasenotes(ui, path, repo=None):
"""parse release notes and print resulting data structure"""
if path == '-':
text = sys.stdin.read()
text = pycompat.stdin.read()
else:
with open(path, 'rb') as fh:
text = fh.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment