/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/log.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 16:17:03 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205161703-le42ds13b6ka1ajn
Require python 2.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Transport decorator that logs transport operations to .bzr.log."""
18
18
 
 
19
from __future__ import absolute_import
19
20
 
20
21
# see also the transportstats plugin, which gives you some summary information
21
22
# in a machine-readable dump
90
91
        before = time.time()
91
92
        try:
92
93
            result = getattr(self._decorated, methodname)(*args, **kwargs)
93
 
        except Exception, e:
 
94
        except Exception as e:
94
95
            mutter("  --> %s" % e)
95
96
            mutter("      %.03fs" % (time.time() - before))
96
97
            raise