~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Mark Hammond
  • Date: 2008-08-11 02:04:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3620.
  • Revision ID: mhammond@skippinet.com.au-20080811020400-7mnjrjl02b5w9uzf
prefer getattr() over hasattr()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1593
1593
            cleanup_environment()
1594
1594
            command = [sys.executable]
1595
1595
            # frozen executables don't need the path to bzr
1596
 
            if not hasattr(sys, "frozen"):
 
1596
            if getattr(sys, "frozen", None) is None:
1597
1597
                command.append(bzr_path)
1598
1598
            if not allow_plugins:
1599
1599
                command.append('--no-plugins')