/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/cethread.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import sys
20
20
import threading
21
21
 
22
 
from .sixish import (
23
 
    reraise,
24
 
)
25
 
 
26
22
 
27
23
class CatchingExceptionThread(threading.Thread):
28
24
    """A thread that keeps track of exceptions.
145
141
            if (self.ignored_exceptions is None
146
142
                    or not self.ignored_exceptions(exc_value)):
147
143
                # Raise non ignored exceptions
148
 
                reraise(exc_class, exc_value, exc_tb)
 
144
                raise exc_value
149
145
 
150
146
    def pending_exception(self):
151
147
        """Raise the caught exception.