Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore.
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 @@
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] == '?':