update larg_pdf.patch, update.sh
This commit is contained in:
parent
f07dfdf916
commit
0b9788acc3
2 changed files with 5 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
|||
diff --git a/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py b/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py
|
||||
index 1987ccd..5522e4b 100644
|
||||
index be8959f..5522e4b 100644
|
||||
--- a/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py
|
||||
+++ b/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py
|
||||
@@ -1925,21 +1910,26 @@ class PdfFileReader(object):
|
||||
@@ -1910,23 +1910,26 @@ class PdfFileReader(object):
|
||||
if debug: print((" x:", x, "%x"%ord(x)))
|
||||
if stream.tell() < 2:
|
||||
raise utils.PdfReadError("EOL marker not found")
|
||||
- step = min(stream.tell()-2, 8*1024)
|
||||
- if step < 2:
|
||||
- raise utils.PdfReadError("EOL marker not found")
|
||||
- stream.seek(-step, 1)
|
||||
- x = stream.read(step)
|
||||
- if b_('\n') in x or b_('\r') in x:
|
||||
|
|
|
@ -16,3 +16,4 @@ mv p34/lib/python3.4/site-packages lib/python3.4/site-packages
|
|||
patch -p2 -R < large_pdf.patch
|
||||
|
||||
rm -r p34 old
|
||||
rm -r lib/python3.4/site-packages/netifaces*
|
||||
|
|
Loading…
Reference in a new issue