Skip to content

Commit 3890460

Browse files
committed
chore: Move BytesIO import to the top
1 parent 6aafaa5 commit 3890460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/sinks/wave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"""
2424

2525
import wave
26+
from io import BytesIO
2627

2728
from ..opus import Decoder as OpusDecoder
2829
from .core import Filters, Sink, default_filters
@@ -59,7 +60,6 @@ def format_audio(self, audio):
5960
raise WaveSinkError(
6061
"Audio may only be formatted after recording is finished."
6162
)
62-
from io import BytesIO
6363

6464
# Read existing PCM data before overwriting
6565
audio.file.seek(0)

0 commit comments

Comments
 (0)