Mercurial > hg
changeset 34202:d47749807464
posix: always pass a native str to unicodedata.normalize's first arg
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 15 Sep 2017 19:44:32 -0400 |
parents | 310c151a0705 |
children | 3a5d8e2996f8 |
files | mercurial/posix.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/posix.py Fri Sep 15 19:44:05 2017 -0400 +++ b/mercurial/posix.py Fri Sep 15 19:44:32 2017 -0400 @@ -379,7 +379,7 @@ u = s.decode('utf-8') # Decompose then lowercase (HFS+ technote specifies lower) - enc = unicodedata.normalize('NFD', u).lower().encode('utf-8') + enc = unicodedata.normalize(r'NFD', u).lower().encode('utf-8') # drop HFS+ ignored characters return encoding.hfsignoreclean(enc)