Skip to content

Commit ad1b206

Browse files
fix adding filetypes
1 parent 48154f7 commit ad1b206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vxn/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
def match(self, buf: bytes):
2424
return VXN.check_magic(buf)
2525

26-
filetype.add_type(VXNType)
26+
filetype.add_type(VXNType())
2727

2828
class MPCType(filetype.Type):
2929
MIME = formats.MPC.MIME
@@ -38,7 +38,7 @@ def __init__(self):
3838
def match(self, buf: bytes):
3939
return buf[0:4] == b'MPCK'
4040

41-
filetype.add_type(MPCType)
41+
filetype.add_type(MPCType())
4242

4343
try:
4444
register_filetypes()

0 commit comments

Comments
 (0)