From a25a5f717fd8057f149d554170e3f007e1dee1c4 Mon Sep 17 00:00:00 2001 From: Chris Hummersone <17592217+chummersone@users.noreply.github.com> Date: Mon, 12 Sep 2022 17:18:17 +0100 Subject: [PATCH] Fix iterator methodss --- src/wavfile/version.py | 2 +- src/wavfile/wavread.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wavfile/version.py b/src/wavfile/version.py index e385333..f8ff448 100644 --- a/src/wavfile/version.py +++ b/src/wavfile/version.py @@ -4,4 +4,4 @@ The [semantic] version of the package. """ -__VERSION__ = "4.0.0" +__VERSION__ = "4.0.1" diff --git a/src/wavfile/wavread.py b/src/wavfile/wavread.py index 1fc94f3..fce01db 100644 --- a/src/wavfile/wavread.py +++ b/src/wavfile/wavread.py @@ -91,7 +91,8 @@ def _block_iterator(self, method: str, num_frames: int) -> \ audio = getattr(self, method)(num_frames=num_frames) if len(audio) > 0: yield audio - return + else: + return def close(self) -> None: """Close the wav file."""