summaryrefslogtreecommitdiff
path: root/markdown/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 11:55:37 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 11:55:37 -0500
commit17123eaf6eb72a60bf6c5b8a1ad0457187387879 (patch)
tree1c6b67e69dd0d72f8dfebb7cd7d8f6b86d69f22d /markdown/extensions
parent3cfa02a3e7ad4b6d565097eda6328230fbb92441 (diff)
downloadpython-markdown-17123eaf6eb72a60bf6c5b8a1ad0457187387879.tar.gz
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/extensions')
-rw-r--r--markdown/extensions/headerid.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py
index 9340a1b..67c9b7d 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -21,12 +21,8 @@ from . import Extension
from ..treeprocessors import Treeprocessor
from ..util import parseBoolValue
from .toc import slugify, unique, stashedHTML2text
-import logging
import warnings
-logger = logging.getLogger('MARKDOWN')
-logging.captureWarnings(True)
-
class HeaderIdTreeprocessor(Treeprocessor):
""" Assign IDs to headers. """