From 6ba3e3f20d7d52895bc44f9fc35b068cfce47133 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 25 Jul 2015 17:14:23 +0200 Subject: _MASSIVE_ pep8 revamp Thank you so much PyCharm --- libmat/audio.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libmat/audio.py') diff --git a/libmat/audio.py b/libmat/audio.py index dae9d75..2747dc1 100644 --- a/libmat/audio.py +++ b/libmat/audio.py @@ -1,5 +1,5 @@ -''' Care about audio fileformat -''' +""" Care about audio fileformat +""" try: from mutagen.flac import FLAC @@ -12,41 +12,41 @@ import mutagenstripper class MpegAudioStripper(parser.GenericParser): - ''' Represent mpeg audio file (mp3, ...) - ''' + """ Represent mpeg audio file (mp3, ...) + """ def _should_remove(self, field): return field.name in ("id3v1", "id3v2") class OggStripper(mutagenstripper.MutagenStripper): - ''' Represent an ogg vorbis file - ''' + """ Represent an ogg vorbis file + """ def _create_mfile(self): self.mfile = OggVorbis(self.filename) class FlacStripper(mutagenstripper.MutagenStripper): - ''' Represent a Flac audio file - ''' + """ Represent a Flac audio file + """ def _create_mfile(self): self.mfile = FLAC(self.filename) def remove_all(self): - ''' Remove the "metadata" block from the file - ''' + """ Remove the "metadata" block from the file + """ super(FlacStripper, self).remove_all() self.mfile.clear_pictures() self.mfile.save() return True def is_clean(self): - ''' Check if the "metadata" block is present in the file - ''' + """ Check if the "metadata" block is present in the file + """ return super(FlacStripper, self).is_clean() and not self.mfile.pictures def get_meta(self): - ''' Return the content of the metadata block if present - ''' + """ Return the content of the metadata block if present + """ metadata = super(FlacStripper, self).get_meta() if self.mfile.pictures: metadata['picture:'] = 'yes' -- cgit v1.3