diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pdfrw/files | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pdfrw/files')
| -rw-r--r-- | dev-python/pdfrw/files/pdfrw-fix-import-collections-warning.patch | 48 | ||||
| -rw-r--r-- | dev-python/pdfrw/files/pdfrw-static-fix-import-collections-warning.patch | 26 |
2 files changed, 0 insertions, 74 deletions
diff --git a/dev-python/pdfrw/files/pdfrw-fix-import-collections-warning.patch b/dev-python/pdfrw/files/pdfrw-fix-import-collections-warning.patch deleted file mode 100644 index fe5971264d86..000000000000 --- a/dev-python/pdfrw/files/pdfrw-fix-import-collections-warning.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/pdfrw/pdfreader.py b/pdfrw/pdfreader.py -index 2c9c3a2..feb025b 100644 ---- a/pdfrw/pdfreader.py -+++ b/pdfrw/pdfreader.py -@@ -12,9 +12,10 @@ of the object. - ''' - import gc - import binascii --import collections - import itertools - -+from collections import defaultdict -+ - from .errors import PdfParseError, log - from .tokens import PdfTokens - from .objects import PdfDict, PdfArray, PdfName, PdfObject, PdfIndirect -@@ -340,7 +341,7 @@ class PdfReader(PdfDict): - - def parse_xref_stream(self, source, int=int, range=range, - enumerate=enumerate, islice=itertools.islice, -- defaultdict=collections.defaultdict, -+ defaultdict=defaultdict, - hexlify=binascii.hexlify): - ''' Parse (one of) the cross-reference file section(s) - ''' -diff --git a/tests/expected.py b/tests/expected.py -index d153fc3..62c29aa 100644 ---- a/tests/expected.py -+++ b/tests/expected.py -@@ -12,8 +12,8 @@ - ''' - - import os --import collections - from pdfrw.py23_diffs import convert_load -+from collections import defaultdict - - root_dir = os.path.dirname(__file__) - result_dir = 'tmp_results' -@@ -28,7 +28,7 @@ for sourcef in ('mytests.txt', 'expected.txt'): - - - def results(): -- results = collections.defaultdict(set) -+ results = defaultdict(set) - with open(expectedf, 'rb') as f: - for line in f: - line = convert_load(line) diff --git a/dev-python/pdfrw/files/pdfrw-static-fix-import-collections-warning.patch b/dev-python/pdfrw/files/pdfrw-static-fix-import-collections-warning.patch deleted file mode 100644 index 95d20358a4b6..000000000000 --- a/dev-python/pdfrw/files/pdfrw-static-fix-import-collections-warning.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/__main__.py b/__main__.py -index 55c6e3a..fa9dd47 100644 ---- a/tests/static_pdfs/__main__.py -+++ b/tests/static_pdfs/__main__.py -@@ -14,10 +14,11 @@ Part of github.com/pmaupin/static_pdfs. - - import sys - import os --import collections - import hashlib - import static_pdfs - -+from collections import defaultdict -+ - params = sys.argv[1:] - - destroy = params == ['destroy'] -@@ -35,7 +36,7 @@ md5. - ''') - - --found = collections.defaultdict(list) -+found = defaultdict(list) - - sys.stdout.write('\n\nReading PDFs:\n\n') - |
