aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-07-06 13:09:23 -0400
committerWaylan Limberg <waylan@gmail.com>2010-07-06 13:09:23 -0400
commit2c19f4e047b70a17d74e976b0cfd35b5c0340a33 (patch)
tree5c33f9488686b3ad90edff0a72c85ccff3bea7b7
parentdd6e329550012f960091ad68386ce67025f5290f (diff)
downloadmarkdown-2c19f4e047b70a17d74e976b0cfd35b5c0340a33.tar.gz
markdown-2c19f4e047b70a17d74e976b0cfd35b5c0340a33.tar.bz2
markdown-2c19f4e047b70a17d74e976b0cfd35b5c0340a33.zip
More cleanup. I thought I removed this.
-rw-r--r--markdown/misc_logging.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/markdown/misc_logging.py b/markdown/misc_logging.py
deleted file mode 100644
index 463be15..0000000
--- a/markdown/misc_logging.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-import logging
-from logging import DEBUG, INFO, WARN, ERROR, CRITICAL
-import sys
-import warnings
-
-#
-# Exceptions
-#
-
-class MarkdownException(Exception):
- """ A Markdown Exception. """
- pass
-
-
-class MarkdownWarning(Warning):
- """ A Markdown Warning. """
- pass
-
-
-#
-# Global functions
-#
-
-def message(level, text):
- """ A wrapper method for logging debug messages. """
- logger = logging.getLogger('MARKDOWN')
- if logger.handlers:
- # The logger is configured
- logger.log(level, text)
- if level > WARN:
- sys.exit(0)
- elif level > WARN:
- raise MarkdownException, text
- else:
- warnings.warn(text, MarkdownWarning) \ No newline at end of file