author | Vadim Gelfer <vadim.gelfer@gmail.com> |
Mon, 24 Jul 2006 09:19:25 -0700 | |
changeset 2654 | c54ecfc360a9 |
parent 2653 | 8796d9991100 |
child 2655 | df5e58c84b01 |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py Mon Jul 24 09:12:16 2006 -0700 +++ b/mercurial/util.py Mon Jul 24 09:19:25 2006 -0700 @@ -517,7 +517,8 @@ try: return getpass.getuser() except ImportError: - return getuser_fallback and getuser_fallback() + if getuser_fallback: + return getuser_fallback() raise util.Abort(_('user name not available - set USERNAME ' 'environment variable'))