add file_ext property to Pretext

otherwise sniffing does not work
This commit is contained in:
Matthias Bernt
2021-10-19 12:36:32 +02:00
parent ef6b0c3b66
commit a9099c2586
+1
View File
@@ -3152,6 +3152,7 @@ class Pretext(Binary):
>>> Pretext().sniff(fname)
True
"""
file_ext = "pretext"
def sniff_prefix(self, sniff_prefix):
# The first 4 bytes of any pretext file is 'pstm', and the rest of the