[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)

This commit is contained in:
Jason R. Coombs 2021-10-10 10:23:06 -04:00 committed by GitHub
parent 459a4db5ea
commit 14a483aa40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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):

View file

@ -0,0 +1 @@
Correct interfaces on DegenerateFiles.Path.