Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: quodlibet/mutagen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cc9981e9497d1f757d103882f7d226f7a638494b
Choose a base ref
..
head repository: quodlibet/mutagen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3fbca92c412bbf4fb651495ed46b8d067579d65d
Choose a head ref
Showing with 5 additions and 5 deletions.
  1. +5 −5 mutagen/wave.py
10 changes: 5 additions & 5 deletions mutagen/wave.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ class error(MutagenError):
"""WAVE stream parsing errors."""


class WaveFile(RiffFile):
class _WaveFile(RiffFile):
"""Representation of a RIFF/WAVE file"""

def __init__(self, fileobj):
@@ -69,7 +69,7 @@ class WaveStreamInfo(StreamInfo):
def __init__(self, fileobj):
"""Raises error"""

wave_file = WaveFile(fileobj)
wave_file = _WaveFile(fileobj)
try:
format_chunk = wave_file[u'fmt']
except KeyError as e:
@@ -108,7 +108,7 @@ class _WaveID3(ID3):

def _pre_load_header(self, fileobj):
try:
fileobj.seek(WaveFile(fileobj)[u'id3'].data_offset)
fileobj.seek(_WaveFile(fileobj)[u'id3'].data_offset)
except (InvalidChunk, KeyError):
raise ID3NoHeaderError("No ID3 chunk")

@@ -118,7 +118,7 @@ def save(self, filething, v1=1, v2_version=4, v23_sep='/', padding=None):
"""Save ID3v2 data to the Wave/RIFF file"""

fileobj = filething.fileobj
wave_file = WaveFile(fileobj)
wave_file = _WaveFile(fileobj)

if u'id3' not in wave_file:
wave_file.insert_chunk(u'id3')
@@ -148,7 +148,7 @@ def delete(filething):
"""Completely removes the ID3 chunk from the RIFF/WAVE file"""

try:
WaveFile(filething.fileobj).delete_chunk(u'id3')
_WaveFile(filething.fileobj).delete_chunk(u'id3')
except KeyError:
pass