changeset 43637:7edc07fb890c

encoding: fix bad type annotation This function returns utf-8 in a bytes, not a unicode. Differential Revision: https://phab.mercurial-scm.org/D7379
author Augie Fackler <augie@google.com>
date Wed, 13 Nov 2019 20:32:24 -0500
parents 9c1eccdd7ed8
children 7415cd486696
files mercurial/encoding.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/encoding.py	Thu Nov 14 13:13:36 2019 -0500
+++ b/mercurial/encoding.py	Wed Nov 13 20:32:24 2019 -0500
@@ -205,7 +205,7 @@
 
 
 def fromlocal(s):
-    # type: (bytes) -> Text
+    # type: (bytes) -> bytes
     """
     Convert a string from the local character encoding to UTF-8