# HG changeset patch # User Augie Fackler # Date 1505518982 14400 # Node ID 90b0e1639fd48059b5583cc322ce827c42230bb0 # Parent 402efa8421b8a8a66a69b44415c2e1f7d2580cbe posix: fix HFS+ normcase doctest to produce valid bytes literals in Python 3 We were previously getting lucky on Python 2. diff -r 402efa8421b8 -r 90b0e1639fd4 mercurial/posix.py --- a/mercurial/posix.py Fri Sep 15 22:08:25 2017 -0400 +++ b/mercurial/posix.py Fri Sep 15 19:43:02 2017 -0400 @@ -344,11 +344,11 @@ >>> normcase(b'UPPER') 'upper' - >>> normcase(b'Caf\xc3\xa9') + >>> normcase(b'Caf\\xc3\\xa9') 'cafe\\xcc\\x81' - >>> normcase(b'\xc3\x89') + >>> normcase(b'\\xc3\\x89') 'e\\xcc\\x81' - >>> normcase(b'\xb8\xca\xc3\xca\xbe\xc8.JPG') # issue3918 + >>> normcase(b'\\xb8\\xca\\xc3\\xca\\xbe\\xc8.JPG') # issue3918 '%b8%ca%c3\\xca\\xbe%c8.jpg' '''