mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Pass the file mode to _open().
This commit is contained in:
parent
0d71d2cf75
commit
cbfe55a56a
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ def open_metadata(schemafile, mode='r', *, _open=open):
|
|||
filename = os.path.join(os.path.dirname(schemafile),
|
||||
os.path.basename(METADATA))
|
||||
try:
|
||||
return _open(filename), filename
|
||||
return _open(filename, mode), filename
|
||||
except FileNotFoundError as exc:
|
||||
raise MetadataError(
|
||||
'metadata file for {!r} not found'.format(schemafile))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue