Mercurial > hg-stable
diff mercurial/windows.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | 4612cded5176 |
line wrap: on
line diff
--- a/mercurial/windows.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/windows.py Mon Jan 25 00:05:27 2010 -0600 @@ -47,7 +47,8 @@ self.fp.write(s[start:end]) start = end except IOError, inst: - if inst.errno != 0: raise + if inst.errno != 0: + raise self.close() raise IOError(errno.EPIPE, 'Broken pipe') @@ -55,7 +56,8 @@ try: return self.fp.flush() except IOError, inst: - if inst.errno != errno.EINVAL: raise + if inst.errno != errno.EINVAL: + raise self.close() raise IOError(errno.EPIPE, 'Broken pipe') @@ -333,7 +335,7 @@ hStdOutput = None hStdError = None wShowWindow = subprocess.SW_HIDE - + args = subprocess.list2cmdline(args) # Not running the command in shell mode makes python26 hang when # writing to hgweb output socket.