diff --git a/Lib/_pyio.py b/Lib/_pyio.py index cb5a619f02a48c..d4460ecdce6377 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -311,16 +311,6 @@ def _open_code_with_warning(path): open_code = _open_code_with_warning -class DocDescriptor: - """Helper for builtins.open.__doc__ - """ - def __get__(self, obj, typ=None): - return ( - "open(file, mode='r', buffering=-1, encoding=None, " - "errors=None, newline=None, closefd=True)\n\n" + - open.__doc__) - - # bpo-43680: Alias to open() kept for backward compatibility OpenWrapper = open