mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
This commit is contained in:
parent
459a4db5ea
commit
14a483aa40
2 changed files with 3 additions and 1 deletions
|
|
@ -46,10 +46,11 @@ def is_dir(self):
|
|||
def joinpath(self, other):
|
||||
return DegenerateFiles.Path()
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return ''
|
||||
|
||||
def open(self):
|
||||
def open(self, mode='rb', *args, **kwargs):
|
||||
raise ValueError()
|
||||
|
||||
def __init__(self, spec):
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Correct interfaces on DegenerateFiles.Path.
|
||||
Loading…
Add table
Add a link
Reference in a new issue