/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/tests/test_msgeditor.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-09 18:02:00 UTC
  • mfrom: (1963.2.7 bzr.dev.no_has_key)
  • Revision ID: pqm@pqm.ubuntu.com-20060909180200-96e41112dff213f3
(robey) remove hasattr and == None in favor of getattr() and is None

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        self._bzr_editor = os.environ.get('BZR_EDITOR', None)
57
57
 
58
58
    def tearDown(self):
59
 
        if self._bzr_editor != None:
 
59
        if self._bzr_editor is not None:
60
60
            os.environ['BZR_EDITOR'] = self._bzr_editor
61
61
        else:
62
 
            if os.environ.get('BZR_EDITOR', None) != None:
 
62
            if os.environ.get('BZR_EDITOR', None) is not None:
63
63
                del os.environ['BZR_EDITOR']
64
64
        super(MsgEditorTest, self).tearDown()
65
65