aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-12-07 02:28:16 -0800
committerYuri Takhteyev <yuri@freewisdom.org>2008-12-07 02:28:16 -0800
commit33045f39f394d73d5e742d49d11e967946e34153 (patch)
treeceeac5f9323969d25c51cc68448823470a0e4e85 /markdown.py
parentcd73ef768613ae2b3683f8e926f405562bc37e39 (diff)
downloadmarkdown-33045f39f394d73d5e742d49d11e967946e34153.tar.gz
markdown-33045f39f394d73d5e742d49d11e967946e34153.tar.bz2
markdown-33045f39f394d73d5e742d49d11e967946e34153.zip
Refactoring test and getting logging to work properly when etree fails to load.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/markdown.py b/markdown.py
index 36e4e8c..ebe414a 100755
--- a/markdown.py
+++ b/markdown.py
@@ -29,6 +29,11 @@ Copyright 2004 Manfred Stienstra (the original version)
License: BSD (see docs/LICENSE for details).
"""
+# Setup a logger manually for compatibility with Python 2.3
+logger = logging.getLogger('MARKDOWN')
+logger.setLevel(markdown.COMMAND_LINE_LOGGING_LEVEL)
+logger.addHandler(logging.StreamHandler())
+
from markdown import commandline
if __name__ == '__main__':