pipeline: search_window variable not actually used

This commit is contained in:
James R. Barlow
2018-06-23 01:48:57 -07:00
parent 76532649b8
commit cd220d9ed9
+1 -1
View File
@@ -120,7 +120,7 @@ def _pdf_guess_version(input_file, search_window=1024):
"""
with open(input_file, 'rb') as f:
signature = f.read(1024)
signature = f.read(search_window)
m = re.search(br'%PDF-(\d\.\d)', signature)
if m:
return m.group(1)