Mercurial > hg
changeset 2655:df5e58c84b01
util.getuser: better comments
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 24 Jul 2006 09:22:47 -0700 |
parents | c54ecfc360a9 |
children | 6024216754f4 e6a7a6a33a62 |
files | mercurial/util.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Mon Jul 24 09:19:25 2006 -0700 +++ b/mercurial/util.py Mon Jul 24 09:22:47 2006 -0700 @@ -517,10 +517,12 @@ try: return getpass.getuser() except ImportError: + # import of pwd will fail on windows - try fallback if getuser_fallback: return getuser_fallback() - raise util.Abort(_('user name not available - set USERNAME ' - 'environment variable')) + # raised if win32api not available + raise Abort(_('user name not available - set USERNAME ' + 'environment variable')) # Platform specific variants if os.name == 'nt':