Skip to content

Commit 9e1714f

Browse files
authored
mp3: make flake8 rules happy 2
1 parent 5edd75c commit 9e1714f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

filetype/types/audio.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ def match(self, buf):
4444
if (buf[0] == 0x49 and
4545
buf[1] == 0x44 and
4646
buf[2] == 0x33):
47-
return True
47+
return True
4848

4949
if (buf[0] == 0xFF):
50-
if (buf[1] == 0xE2 or #MPEG 2.5 with error protection
51-
buf[1] == 0xE3 or #MPEG 2.5 w/o error protection
52-
buf[1] == 0xF2 or #MPEG 2 with error protection
53-
buf[1] == 0xF3 or #MPEG 2 w/o error protection
54-
buf[1] == 0xFA or #MPEG 1 with error protection
55-
buf[1] == 0xFB): #MPEG 1 w/o error protection
56-
return True
50+
if (buf[1] == 0xE2 or # MPEG 2.5 with error protection
51+
buf[1] == 0xE3 or # MPEG 2.5 w/o error protection
52+
buf[1] == 0xF2 or # MPEG 2 with error protection
53+
buf[1] == 0xF3 or # MPEG 2 w/o error protection
54+
buf[1] == 0xFA or # MPEG 1 with error protection
55+
buf[1] == 0xFB): # MPEG 1 w/o error protection
56+
return True
5757
return False
5858

5959

0 commit comments

Comments
 (0)