diff options
Diffstat (limited to 'libmat2/pdf.py')
| -rw-r--r-- | libmat2/pdf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/pdf.py b/libmat2/pdf.py index 2da21b5..0672214 100644 --- a/libmat2/pdf.py +++ b/libmat2/pdf.py | |||
| @@ -136,8 +136,8 @@ class PDFParser(abstract.AbstractParser): | |||
| 136 | # It should(tm) be alright though, because cairo's output format | 136 | # It should(tm) be alright though, because cairo's output format |
| 137 | # for metadata is fixed. | 137 | # for metadata is fixed. |
| 138 | with open(out_file, 'rb') as f: | 138 | with open(out_file, 'rb') as f: |
| 139 | out = re.sub(rb'<<[\s\n]*/Producer.*?>>', b' << >>', f.read(), 0, | 139 | out = re.sub(rb'<<[\s\n]*/Producer.*?>>', b' << >>', f.read(), |
| 140 | re.DOTALL | re.IGNORECASE) | 140 | count=0, flags=re.DOTALL | re.IGNORECASE) |
| 141 | with open(out_file, 'wb') as f: | 141 | with open(out_file, 'wb') as f: |
| 142 | f.write(out) | 142 | f.write(out) |
| 143 | 143 | ||
