aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
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__':