diff options
-rwxr-xr-x | bin/markdown_py | 3 | ||||
-rw-r--r-- | markdown/commandline.py | 3 | ||||
-rw-r--r-- | markdown/util.py | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/bin/markdown_py b/bin/markdown_py index 8d04cc9..b34cb66 100755 --- a/bin/markdown_py +++ b/bin/markdown_py @@ -30,12 +30,11 @@ 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(COMMAND_LINE_LOGGING_LEVEL) +logger.setLevel(commandline.COMMAND_LINE_LOGGING_LEVEL) logger.addHandler(logging.StreamHandler()) if __name__ == '__main__': diff --git a/markdown/commandline.py b/markdown/commandline.py index dce2b8a..049d2be 100644 --- a/markdown/commandline.py +++ b/markdown/commandline.py @@ -10,6 +10,9 @@ import optparse import logging from logging import DEBUG, INFO, WARN, ERROR, CRITICAL +# default logging level for command-line use +COMMAND_LINE_LOGGING_LEVEL = CRITICAL + def parse_options(): """ Define and parse `optparse` options for command-line usage. diff --git a/markdown/util.py b/markdown/util.py index 4890b89..c170368 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -15,8 +15,7 @@ Constants you might want to modify ----------------------------------------------------------------------------- """ -# default logging level for command-line use -COMMAND_LINE_LOGGING_LEVEL = CRITICAL + TAB_LENGTH = 4 # expand tabs to this many spaces ENABLE_ATTRIBUTES = True # @id = xyz -> <... id="xyz"> SMART_EMPHASIS = True # this_or_that does not become this<i>or</i>that |