Skip to content

Commit 96ea46b

Browse files
authored
Merge pull request #1 from MikhailMurashov/patch-2
Fix flake
2 parents 9e1714f + 2ba0aee commit 96ea46b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

filetype/types/audio.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,24 @@ def __init__(self):
4040
)
4141

4242
def match(self, buf):
43-
if (len(buf) > 2):
44-
if (buf[0] == 0x49 and
43+
if len(buf) > 2:
44+
if (
45+
buf[0] == 0x49 and
4546
buf[1] == 0x44 and
46-
buf[2] == 0x33):
47-
return True
47+
buf[2] == 0x33
48+
):
49+
return True
4850

49-
if (buf[0] == 0xFF):
50-
if (buf[1] == 0xE2 or # MPEG 2.5 with error protection
51+
if buf[0] == 0xFF:
52+
if (
53+
buf[1] == 0xE2 or # MPEG 2.5 with error protection
5154
buf[1] == 0xE3 or # MPEG 2.5 w/o error protection
5255
buf[1] == 0xF2 or # MPEG 2 with error protection
5356
buf[1] == 0xF3 or # MPEG 2 w/o error protection
5457
buf[1] == 0xFA or # MPEG 1 with error protection
55-
buf[1] == 0xFB): # MPEG 1 w/o error protection
56-
return True
58+
buf[1] == 0xFB # MPEG 1 w/o error protection
59+
):
60+
return True
5761
return False
5862

5963

0 commit comments

Comments
 (0)