mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
fix the terminal width detection, Issue 1101
This commit is contained in:
parent
5448e23e40
commit
64c38485c0
@ -18,6 +18,7 @@ else:
|
||||
class sync_stream(object):
|
||||
def __init__(self, stream):
|
||||
self.stream = stream
|
||||
self.encoding = self.stream.encoding
|
||||
|
||||
def write(self, txt):
|
||||
try:
|
||||
@ -27,6 +28,9 @@ else:
|
||||
finally:
|
||||
wlock.release()
|
||||
|
||||
def fileno(self):
|
||||
return self.stream.fileno()
|
||||
|
||||
def flush(self):
|
||||
self.stream.flush()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user