Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-43680: Remove _pyio.DocDescriptor.
It was used only in OpenWrapper class that has been removed already.
  • Loading branch information
methane committed Apr 14, 2021
commit d9b9a0476039be6effd02a9aeb24146395c7ed1c
10 changes: 0 additions & 10 deletions Lib/_pyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down