diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-01-31 11:55:37 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-01-31 11:55:37 -0500 |
commit | 17123eaf6eb72a60bf6c5b8a1ad0457187387879 (patch) | |
tree | 1c6b67e69dd0d72f8dfebb7cd7d8f6b86d69f22d /markdown/__init__.py | |
parent | 3cfa02a3e7ad4b6d565097eda6328230fbb92441 (diff) | |
download | markdown-17123eaf6eb72a60bf6c5b8a1ad0457187387879.tar.gz markdown-17123eaf6eb72a60bf6c5b8a1ad0457187387879.tar.bz2 markdown-17123eaf6eb72a60bf6c5b8a1ad0457187387879.zip |
Only log warnings from commandline script.
I need to remember this is a lib first and not configure logging from within
the lib. Also, from the script we are now actually displaying deprecation
warnings. For some reason I don't understnad deprecation warnings are hidden
by default in Python. And who remembers to run Python with the `-Wd` flag
every time they upgrade a lib just to make sure there's no new deprecations?
Fixes #384.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r-- | markdown/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index 19c4fc7..fc51288 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -49,8 +49,8 @@ from .serializers import to_html_string, to_xhtml_string __all__ = ['Markdown', 'markdown', 'markdownFromFile'] + logger = logging.getLogger('MARKDOWN') -logging.captureWarnings(True) class Markdown(object): |