--- a/hgext/releasenotes.py Mon Jul 06 10:30:55 2020 +0200
+++ b/hgext/releasenotes.py Mon Jul 06 17:44:25 2020 +0200
@@ -30,7 +30,10 @@
scmutil,
util,
)
-from mercurial.utils import stringutil
+from mercurial.utils import (
+ procutil,
+ stringutil,
+)
cmdtable = {}
command = registrar.command(cmdtable)
@@ -689,7 +692,7 @@
def debugparsereleasenotes(ui, path, repo=None):
"""parse release notes and print resulting data structure"""
if path == b'-':
- text = pycompat.stdin.read()
+ text = procutil.stdin.read()
else:
with open(path, b'rb') as fh:
text = fh.read()