don't read too much

This commit is contained in:
Anthony Bretaudeau
2017-11-21 10:33:22 +01:00
parent f44175b03c
commit 0bb7612977
+1 -1
View File
@@ -1808,7 +1808,7 @@ class ICM(Binary):
dataset.blurb = 'file purged from disk'
def sniff(self, dataset):
line = open(dataset).readline()
line = open(dataset).read(100)
if '>ver = ' in line and 'len = ' in line and 'depth = ' in line and 'periodicity =' in line and 'nodes = ' in line:
return True