Mercurial > gub
changeset 5357:60c10ff249b5
Logg timing less, and silly timing fixlet.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Tue, 14 Jul 2009 09:04:32 +0200 |
parents | 6886f2461165 |
children | 1dd929f4bdff |
files | gub/gup.py gub/misc.py |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/gup.py Mon Jul 13 20:57:57 2009 +0200 +++ b/gub/gup.py Tue Jul 14 09:04:32 2009 +0200 @@ -110,7 +110,7 @@ logging.error ('already have file %(f)s: %(package)s\n' % locals ()) conflicts = True - logging.warning ('GUP: for f in lst:' + misc.timing () + '\n') + logging.command ('GUP: for f in lst:' + misc.timing () + '\n') if conflicts and not self.is_distro: raise Exception ('abort') root = self.root
--- a/gub/misc.py Mon Jul 13 20:57:57 2009 +0200 +++ b/gub/misc.py Tue Jul 14 09:04:32 2009 +0200 @@ -691,11 +691,12 @@ def timing (): global start now = time.time () + result = '' if start: elapsed = now - start - return 'elapsed: %(elapsed)0.2f' % locals () + result = 'elapsed: %(elapsed)0.2f' % locals () start = now - return '' + return result def test (): printf (forall (x for x in [1, 1]))