Skip to content

Commit

Permalink
Fix iterator methodss
Browse files Browse the repository at this point in the history
  • Loading branch information
chummersone committed Sep 12, 2022
1 parent 34f262f commit a25a5f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wavfile/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
The [semantic] version of the package.
"""

__VERSION__ = "4.0.0"
__VERSION__ = "4.0.1"
3 changes: 2 additions & 1 deletion src/wavfile/wavread.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit a25a5f7

Please sign in to comment.