diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-12-07 12:29:22 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-12-07 12:29:22 -0500 |
commit | 551067dabd1e750a2fb7e6b7cc42aab92990b6ab (patch) | |
tree | 9bfe10cd20b8083fea421c3de955b1834c3aca25 | |
parent | 26970d2d339f2ff4e77316d328e85c0a61d6986d (diff) | |
download | markdown-551067dabd1e750a2fb7e6b7cc42aab92990b6ab.tar.gz markdown-551067dabd1e750a2fb7e6b7cc42aab92990b6ab.tar.bz2 markdown-551067dabd1e750a2fb7e6b7cc42aab92990b6ab.zip |
Fixed imports so logging works in commandline script.
-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() |