# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-04-20 19:23:38 # Node ID f0ea0f64262714628cba98613958b3ce5e26a9de # Parent c3342c1772115a2e3b1afce7157fcc061c39f18a py3: make posix.getuser return a bytes diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -494,7 +494,7 @@ def statfiles(files): 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.