Skip to content

Commit 74a3049

Browse files
authored
Merge pull request #270 from william-andre/io-wrapper-delegation
Delegate unknown attrs to target in WrappingIO
2 parents 7f045a2 + 3a70922 commit 74a3049

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

progressbar/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def __init__(self, target: types.IO, capturing: bool = False,
199199
self.listeners = listeners or set()
200200
self.needs_clear = False
201201

202-
def isatty(self): # pragma: no cover
203-
return self.target.isatty()
202+
def __getattr__(self, name): # pragma: no cover
203+
return getattr(self.target, name)
204204

205205
def write(self, value: str) -> None:
206206
if self.capturing:

0 commit comments

Comments
 (0)