Submitter | Pulkit Goyal |
---|---|
Date | Aug. 7, 2016, 7:54 p.m. |
Message ID | <a77a7f6e8bfc90901d82.1470599680@waste.org> |
Download | mbox | patch |
Permalink | /patch/16186/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/registrar.py b/mercurial/registrar.py --- a/mercurial/registrar.py +++ b/mercurial/registrar.py @@ -83,6 +83,10 @@ 'doc' is '__doc__.strip()' of the registered function. """ + # docstrings are using the source file encoding, which should be + # utf-8. + if not isinstance(doc, bytes): + doc = doc.encode(u'utf-8') return self._docformat % (decl, doc) def _extrasetup(self, name, func):