dc530f3a6f
* Use logging.Logger.warning instead of warning.warn in most cases, following the Python official guidance that warning.warn is directed at _developers_, not users * (pdfdocument.py) remove declarations of PDFTextExtractionNotAllowedWarning, PDFNoValidXRefWarning * (pdfpage.py) Don't import warning, don't use PDFTextExtractionNotAllowedWarning * (tools/dumppdf.py) Don't import warning, don't use PDFNoValidXRefWarning * (tests/test_tools_dumppdf.py) Don't import warning, check for logging.WARN rather than PDFNoValidXRefWarning * get name right * make flake8 happy * Keep warning classes such that this does not crash code when these warnings are explictly ignored * Update changelog to include pr ref * Small textual change * Remove patch * No need for testing if the warning is actually raised. The test_tootls_dumppdf.py are just test cases if these pdfs are supported. * Use logger as name for logger * Add docs to legacy warnings * Use logger.Logger.warn for failed decompression * Add reference to docs describing when to use logger and warnings Co-authored-by: Henry S. Thompson <ht@home.hst.name> Co-authored-by: Pieter Marsman <pietermarsman@gmail.com> |
||
---|---|---|
.. | ||
helpers.py | ||
tempfilepath.py | ||
test_converter.py | ||
test_encodingdb.py | ||
test_font_size.py | ||
test_highlevel_extracttext.py | ||
test_layout.py | ||
test_pdfdocument.py | ||
test_pdfencoding.py | ||
test_pdffont.py | ||
test_pdfminer_ccitt.py | ||
test_pdfminer_crypto.py | ||
test_pdfminer_psparser.py | ||
test_tools_dumppdf.py | ||
test_tools_pdf2txt.py | ||
test_utils.py |