/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/commands.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:
584
584
            sys.stdout.flush()
585
585
            return result
586
586
        except IOError, e:
587
 
            if not hasattr(e, 'errno'):
 
587
            if getattr(e, 'errno', None) is None:
588
588
                raise
589
589
            if e.errno != errno.EPIPE:
590
590
                # Win32 raises IOError with errno=0 on a broken pipe