--- a/mercurial/templatefilters.py Thu Sep 07 22:36:54 2017 +0900
+++ b/mercurial/templatefilters.py Sun Sep 03 14:32:11 2017 +0900
@@ -275,19 +275,19 @@
"""Any text. Returns the name before an email address,
interpreting it as per RFC 5322.
- >>> person('foo@bar')
+ >>> person(b'foo@bar')
'foo'
- >>> person('Foo Bar <foo@bar>')
+ >>> person(b'Foo Bar <foo@bar>')
'Foo Bar'
- >>> person('"Foo Bar" <foo@bar>')
+ >>> person(b'"Foo Bar" <foo@bar>')
'Foo Bar'
- >>> person('"Foo \"buz\" Bar" <foo@bar>')
+ >>> person(b'"Foo \"buz\" Bar" <foo@bar>')
'Foo "buz" Bar'
>>> # The following are invalid, but do exist in real-life
...
- >>> person('Foo "buz" Bar <foo@bar>')
+ >>> person(b'Foo "buz" Bar <foo@bar>')
'Foo "buz" Bar'
- >>> person('"Foo Bar <foo@bar>')
+ >>> person(b'"Foo Bar <foo@bar>')
'Foo Bar'
"""
if '@' not in author: