diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 4f22887..dcb4737 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1699,13 +1699,8 @@ class Helper: self._input = input self._output = output - @property - def input(self): - return self._input or sys.stdin - - @property - def output(self): - return self._output or sys.stdout + input = property(lambda self: self._input or sys.stdin) + output = property(lambda self: self._output or sys.stdout) def __repr__(self): if inspect.stack()[1][3] == '?': |