/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to diff.py

  • Committer: Scott Scriven
  • Date: 2008-07-17 11:24:26 UTC
  • mto: This revision was merged to the branch mainline in revision 549.
  • Revision ID: ubuntu@toykeeper.net-20080717112426-mqjnn717ja3bqqjt
Removed exception-swallowing hasattr()s.

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
        # text view
331
331
 
332
332
    def set_diff_text_sections(self, sections):
333
 
        if not hasattr(self, 'diff_view'):
 
333
        if getattr(self, 'diff_view', None) is None:
334
334
            self.diff_view = DiffFileView()
335
335
            self.pack2(self.diff_view)
336
336
        self.diff_view.show()
347
347
        Compares the two trees and populates the window with the
348
348
        differences.
349
349
        """
350
 
        if not hasattr(self, 'diff_view'):
 
350
        if getattr(self, 'diff_view', None) is None:
351
351
            self.diff_view = DiffView()
352
352
            self.pack2(self.diff_view)
353
353
        self.diff_view.show()