D7379: encoding: fix bad type annotation
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Nov 14 03:51:05 UTC 2019
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This function returns utf-8 in a bytes, not a unicode.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7379
AFFECTED FILES
mercurial/encoding.py
CHANGE DETAILS
diff --git a/mercurial/encoding.py b/mercurial/encoding.py
--- a/mercurial/encoding.py
+++ b/mercurial/encoding.py
@@ -205,7 +205,7 @@
def fromlocal(s):
- # type: (bytes) -> Text
+ # type: (bytes) -> bytes
"""
Convert a string from the local character encoding to UTF-8
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list