mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH-136529)
This commit is contained in:
parent
42b251bceb
commit
171de05b48
3 changed files with 12 additions and 0 deletions
|
|
@ -427,6 +427,8 @@ class Wave_write:
|
|||
_datawritten -- the size of the audio samples actually written
|
||||
"""
|
||||
|
||||
_file = None
|
||||
|
||||
def __init__(self, f):
|
||||
self._i_opened_the_file = None
|
||||
if isinstance(f, str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue