~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.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:
58
58
    print >>sys.stderr, "bzr: error: cannot find a suitable python interpreter"
59
59
    print >>sys.stderr, "  (need %d.%d or later)" % NEED_VERS
60
60
    sys.exit(1)
61
 
if hasattr(os, "unsetenv"):
 
61
if getattr(os, "unsetenv", None) is not None:
62
62
    os.unsetenv(REINVOKE)
63
63
 
64
64