/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/transport/http/__init__.py

  • Committer: Robey Pointer
  • Date: 2006-09-03 00:13:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060903001354-1f596a529c9c4934
remove usage of hasattr

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
        if not self.parse_request(): # An error code has been sent, just exit
447
447
            return
448
448
        mname = 'do_' + self.command
449
 
        if not hasattr(self, mname):
 
449
        if getattr(self, mname, None) == None:
450
450
            self.send_error(501, "Unsupported method (%r)" % self.command)
451
451
            return
452
452
        method = getattr(self, mname)