/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 breezy/commands.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-13 23:57:28 UTC
  • mfrom: (7490 work)
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200213235728-m6ds0mm3mbs4y182
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
971
971
def apply_coveraged(the_callable, *args, **kwargs):
972
972
    import coverage
973
973
    cov = coverage.Coverage()
974
 
    os.environ['COVERAGE_PROCESS_START'] = cov.config_file
 
974
    try:
 
975
        config_file = cov.config.config_file
 
976
    except AttributeError:  # older versions of coverage
 
977
        config_file = cov.config_file
 
978
    os.environ['COVERAGE_PROCESS_START'] = config_file
975
979
    cov.start()
976
980
    try:
977
981
        return exception_to_return_code(the_callable, *args, **kwargs)