My implementation of sethostname() was broken and failed when passed bytes on Python 3. Update the implementation to match CPython -- that is, use bytes if provided, or fsencode() when str is provided.
--HG-- branch : py3.6
April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!
My implementation of sethostname() was broken and failed when passed bytes on Python 3. Update the implementation to match CPython -- that is, use bytes if provided, or fsencode() when str is provided.
--HG-- branch : py3.6