diff options
author | Craig de Stigter <craig.destigter@koordinates.com> | 2011-04-18 16:55:59 +1200 |
---|---|---|
committer | Craig de Stigter <craig.destigter@koordinates.com> | 2011-04-18 16:55:59 +1200 |
commit | d2bb675211be2470a34cb62e36016c5171e6a20a (patch) | |
tree | acb2736865717cb158245704edb0484baf9e6de2 | |
parent | 8bc4135947d9a2fc1749ebc4a8cdbd4d72d7a74e (diff) | |
download | markdown-d2bb675211be2470a34cb62e36016c5171e6a20a.tar.gz markdown-d2bb675211be2470a34cb62e36016c5171e6a20a.tar.bz2 markdown-d2bb675211be2470a34cb62e36016c5171e6a20a.zip |
fix import loop when importing logger
-rw-r--r-- | markdown/__init__.py | 3 | ||||
-rw-r--r-- | markdown/blockprocessors.py | 4 | ||||
-rw-r--r-- | markdown/commandline.py | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index b397f1b..0ca0509 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -48,8 +48,7 @@ import html4 # For backwards compatibility in the 2.0.x series # The things defined in these modules started off in __init__.py so third # party code might need to access them here. -#from util import * - +from util import * logger = logging.getLogger('MARKDOWN') diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 10a0177..2f15578 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -12,10 +12,12 @@ as they need to alter how markdown blocks are parsed. """ +import logging import re import util from blockparser import BlockParser -from markdown import logger + +logger = logging.getLogger('MARKDOWN') def build_block_parser(md_instance, **kwargs): diff --git a/markdown/commandline.py b/markdown/commandline.py index eab23bb..3f2e009 100644 --- a/markdown/commandline.py +++ b/markdown/commandline.py @@ -7,9 +7,11 @@ COMMAND-LINE SPECIFIC STUFF import markdown import sys import optparse + +import logging from logging import DEBUG, INFO, CRITICAL -from markdown import logger +logger = logging.getLogger('MARKDOWN') # default logging level for command-line use COMMAND_LINE_LOGGING_LEVEL = CRITICAL |