aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-07-06 13:04:05 -0400
committerWaylan Limberg <waylan@gmail.com>2010-07-06 13:06:13 -0400
commitdd6e329550012f960091ad68386ce67025f5290f (patch)
treee8343b79e3a133fc10053d2bd7de29232e6676fe
parent3bd3bf16fc1f87729f3fb339fbffb0a450446349 (diff)
downloadmarkdown-dd6e329550012f960091ad68386ce67025f5290f.tar.gz
markdown-dd6e329550012f960091ad68386ce67025f5290f.tar.bz2
markdown-dd6e329550012f960091ad68386ce67025f5290f.zip
Cleanup of my cleanup.
-rw-r--r--.gitignore2
-rw-r--r--markdown/exceptions36
2 files changed, 1 insertions, 37 deletions
diff --git a/.gitignore b/.gitignore
index b363cfb..f921269 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,8 @@
*.pyc
*.bak
-*.tmp
*.swp
test-output.html
build/*
dist/*
+tmp/*
MANIFEST
diff --git a/markdown/exceptions b/markdown/exceptions
deleted file mode 100644
index 463be15..0000000
--- a/markdown/exceptions
+++ /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