mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-36743: __get__ is sometimes called without the owner argument (#12992)
This commit is contained in:
parent
84125fed2a
commit
0dac68f1e5
5 changed files with 24 additions and 13 deletions
|
@ -283,7 +283,7 @@ except AttributeError:
|
|||
class DocDescriptor:
|
||||
"""Helper for builtins.open.__doc__
|
||||
"""
|
||||
def __get__(self, obj, typ):
|
||||
def __get__(self, obj, typ=None):
|
||||
return (
|
||||
"open(file, mode='r', buffering=-1, encoding=None, "
|
||||
"errors=None, newline=None, closefd=True)\n\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue