pdfminer.six/pdfminer
htInEdin dc530f3a6f
Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673)
* 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>
2022-01-26 20:41:12 +01:00
..
cmap Include compiled cmap resources to simplify installation for CJK languages 2015-12-27 13:32:29 +09:00
Makefile apply more patches 2010-02-13 15:00:43 +00:00
__init__.py Bump version to 20211012 2021-10-12 20:45:24 +02:00
_saslprep.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
arcfour.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
ascii85.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
ccitt.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
cmapdb.py Add support identity unicode cmap (#626) 2021-10-13 21:52:00 +02:00
converter.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
encodingdb.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
fontmetrics.py Drop support for legacy Python 2 (#346) 2020-01-04 16:47:07 +01:00
glyphlist.py Drop support for legacy Python 2 (#346) 2020-01-04 16:47:07 +01:00
high_level.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
image.py Fixes jbig2 writer to write valid jb2 files 2022-01-23 21:41:08 +01:00
jbig2.py Fixes jbig2 writer to write valid jb2 files 2022-01-23 21:41:08 +01:00
latin_enc.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
layout.py Fix regression in page layout that sometimes returned text lines out of order (#659) 2022-01-26 19:55:08 +01:00
lzw.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
pdfcolor.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
pdfdevice.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
pdfdocument.py Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673) 2022-01-26 20:41:12 +01:00
pdffont.py Add support identity unicode cmap (#626) 2021-10-13 21:52:00 +02:00
pdfinterp.py Change log.info into log.debug to make pdfinterp.py less verbose 2022-01-26 19:57:55 +01:00
pdfpage.py Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673) 2022-01-26 20:41:12 +01:00
pdfparser.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
pdftypes.py Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673) 2022-01-26 20:41:12 +01:00
psparser.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
py.typed export type annotations in package (#679) 2022-01-25 22:11:17 +01:00
runlength.py Add type annotations (#661) 2021-10-09 16:23:28 +02:00
settings.py Remove webapp and other (un)helpful application references: django, cgi, and pyinstaller. (#320) 2019-10-26 19:16:37 +02:00
utils.py Replace typing-extensions Literal with the type of the Literal & run mypy, nosetest and sphinx in there own environment on cicd (#677) 2021-10-12 20:22:58 +02:00