# HG changeset patch # User Augie Fackler # Date 2019-11-14 01:32:24 # Node ID 7edc07fb890cb85c36e5c3bfccae8f1c8233a8b3 # Parent 9c1eccdd7ed83c288ad99527b43733a514955310 encoding: fix bad type annotation This function returns utf-8 in a bytes, not a unicode. Differential Revision: https://phab.mercurial-scm.org/D7379 diff --git a/mercurial/encoding.py b/mercurial/encoding.py --- a/mercurial/encoding.py +++ b/mercurial/encoding.py @@ -205,7 +205,7 @@ def tolocal(s): def fromlocal(s): - # type: (bytes) -> Text + # type: (bytes) -> bytes """ Convert a string from the local character encoding to UTF-8