Mercurial > public > mercurial-scm > hg
comparison mercurial/windows.py @ 8778:c5f36402daad
use new style classes
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 10 Jun 2009 15:10:21 +0200 |
parents | 0289f384e1e5 |
children | ae275ad46bd0 |
comparison
equal
deleted
inserted
replaced
8777:012be286b2c4 | 8778:c5f36402daad |
---|---|
18 return osutil.posixfile(name, mode, buffering) | 18 return osutil.posixfile(name, mode, buffering) |
19 except WindowsError, err: | 19 except WindowsError, err: |
20 raise WinIOError(err) | 20 raise WinIOError(err) |
21 posixfile.__doc__ = osutil.posixfile.__doc__ | 21 posixfile.__doc__ = osutil.posixfile.__doc__ |
22 | 22 |
23 class winstdout: | 23 class winstdout(object): |
24 '''stdout on windows misbehaves if sent through a pipe''' | 24 '''stdout on windows misbehaves if sent through a pipe''' |
25 | 25 |
26 def __init__(self, fp): | 26 def __init__(self, fp): |
27 self.fp = fp | 27 self.fp = fp |
28 | 28 |