Skip to content

Commit fee38b7

Browse files
committed
chore: Move BytesIO import to the top
1 parent 58518f0 commit fee38b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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
audio.file.seek(0)
6565
pcm_data = audio.file.read()

0 commit comments

Comments
 (0)