~qbzr-dev/qbzr/0.22

« back to all changes in this revision

Viewing changes to lib/trace.py

  • Committer: Alexander Belchenko
  • Date: 2012-09-18 08:16:03 UTC
  • mfrom: (1415.1.27 0.21)
  • Revision ID: bialix@ukr.net-20120918081603-bduyab4e36d7x421
merge 0.21: Workaround for bug in Python http://bugs.python.org/issue4230

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
    # We only want one error to show if the user chose Close
86
86
    global closing_due_to_error
 
87
    # 0.20 special: We check hasattr() first to work around
 
88
    # <http://bugs.python.org/issue4230>
87
89
    if closing_due_to_error or \
88
 
        getattr(window, 'closing_due_to_error', False):
 
90
            (hasattr(window, 'closing_due_to_error') and
 
91
             window.closing_due_to_error):
89
92
        return
90
93
 
91
94
    if exc_info is None: