# HG changeset patch # User Augie Fackler # Date 1573695144 18000 # 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 -r 9c1eccdd7ed8 -r 7edc07fb890c mercurial/encoding.py --- 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