From d9b9a0476039be6effd02a9aeb24146395c7ed1c Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 14 Apr 2021 10:22:27 +0900 Subject: [PATCH] bpo-43680: Remove _pyio.DocDescriptor. It was used only in OpenWrapper class that has been removed already. --- Lib/_pyio.py | 10 ---------- 1 file changed, 10 deletions(-) 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