Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 3466:8b55c0ba8048
makes username mandatory
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 18 Oct 2006 22:24:03 +0200 |
parents | ec6f400cff4d |
children | bb44489b901f 3b07e223534b |
line wrap: on
line diff
--- a/mercurial/util.py Wed Oct 18 10:37:34 2006 -0700 +++ b/mercurial/util.py Wed Oct 18 22:24:03 2006 +0200 @@ -519,20 +519,6 @@ except AttributeError: return os.name == 'nt' and 'command' in os.environ.get('comspec', '') -getuser_fallback = None - -def getuser(): - '''return name of current user''' - try: - return getpass.getuser() - except ImportError: - # import of pwd will fail on windows - try fallback - if getuser_fallback: - return getuser_fallback() - # raised if win32api not available - raise Abort(_('user name not available - set USERNAME ' - 'environment variable')) - # Platform specific variants if os.name == 'nt': demandload(globals(), "msvcrt")