diff options
-rwxr-xr-x | markdown.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/markdown.py b/markdown.py index ebe414a..aae3e76 100755 --- a/markdown.py +++ b/markdown.py @@ -29,12 +29,14 @@ Copyright 2004 Manfred Stienstra (the original version) License: BSD (see docs/LICENSE for details). """ +import logging +from markdown import COMMAND_LINE_LOGGING_LEVEL +from markdown import commandline + # Setup a logger manually for compatibility with Python 2.3 logger = logging.getLogger('MARKDOWN') -logger.setLevel(markdown.COMMAND_LINE_LOGGING_LEVEL) +logger.setLevel(COMMAND_LINE_LOGGING_LEVEL) logger.addHandler(logging.StreamHandler()) -from markdown import commandline - if __name__ == '__main__': commandline.run() |