# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1492716218 -19800 # Node ID f0ea0f64262714628cba98613958b3ce5e26a9de # Parent c3342c1772115a2e3b1afce7157fcc061c39f18a py3: make posix.getuser return a bytes diff -r c3342c177211 -r f0ea0f642627 mercurial/posix.py --- a/mercurial/posix.py Thu Apr 20 19:57:16 2017 +0530 +++ b/mercurial/posix.py Fri Apr 21 00:53:38 2017 +0530 @@ -494,7 +494,7 @@ def getuser(): '''return name of current user''' - return getpass.getuser() + return pycompat.fsencode(getpass.getuser()) def username(uid=None): """Return the name of the user with the given uid.