Mercurial > hg-stable
comparison mercurial/windows.py @ 45145:aea246bc04bd
windows: augment docstring of `winstdout` class
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 17 Jul 2020 03:12:29 +0200 |
parents | 8e8fd938ca07 |
children | a37f290a7124 |
comparison
equal
deleted
inserted
replaced
45144:c93dd9d9f1e6 | 45145:aea246bc04bd |
---|---|
185 # may be wrapped by win32mbcs extension | 185 # may be wrapped by win32mbcs extension |
186 listdir = osutil.listdir | 186 listdir = osutil.listdir |
187 | 187 |
188 | 188 |
189 class winstdout(object): | 189 class winstdout(object): |
190 '''stdout on windows misbehaves if sent through a pipe''' | 190 '''Some files on Windows misbehave. |
191 | |
192 When writing to a broken pipe, EINVAL instead of EPIPE may be raised. | |
193 | |
194 When writing too many bytes to a console at the same, a "Not enough space" | |
195 error may happen. Python 3 already works around that. | |
196 ''' | |
191 | 197 |
192 def __init__(self, fp): | 198 def __init__(self, fp): |
193 self.fp = fp | 199 self.fp = fp |
194 | 200 |
195 def __getattr__(self, key): | 201 def __getattr__(self, key): |