summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-07-16 15:23:18 -0700
committerR. Tyler Ballance <tyler@slide.com>2009-07-16 15:23:18 -0700
commitdc896aa348b7d5e4dbeed440c6ae8cf8ebdf2fdd (patch)
treeb668be77604bdf7cc728838c645072524a5d4924
parent6dec6a56a749e1e45f40d602eb3c47f447f4b1dd (diff)
downloadpython-cheetah-dc896aa348b7d5e4dbeed440c6ae8cf8ebdf2fdd.tar.gz
Prune the contrib package which should have been removed when the markdown module was added as a setuptools dependency
-rw-r--r--SetupConfig.py1
-rw-r--r--src/Filters.py8
-rw-r--r--src/contrib/__init__.py0
3 files changed, 2 insertions, 7 deletions
diff --git a/SetupConfig.py b/SetupConfig.py
index f0504c8..14521a8 100644
--- a/SetupConfig.py
+++ b/SetupConfig.py
@@ -11,7 +11,6 @@ packages = ['Cheetah',
'Cheetah.Tests',
'Cheetah.Tools',
'Cheetah.Utils',
- 'Cheetah.contrib',
]
classifiers = [line.strip() for line in '''\
#Development Status :: 4 - Beta
diff --git a/src/Filters.py b/src/Filters.py
index 6f16974..09ffa4e 100644
--- a/src/Filters.py
+++ b/src/Filters.py
@@ -5,7 +5,6 @@
#transform results in a filter on the entirety of the output
'''
import sys
-import Cheetah.contrib
# Additional entities WebSafe knows how to transform. No need to include
# '<', '>' or '&' since those will have been done already.
@@ -89,11 +88,8 @@ class Markdown(EncodeUnicode):
def filter(self, value, **kwargs):
# This is a bit of a hack to allow outright embedding of the markdown module
try:
- markdown_path = '/'.join(Cheetah.contrib.__file__.split('/')[:-1])
- sys.path.append(markdown_path)
- from Cheetah.contrib import markdown
- sys.path.pop()
- except:
+ import markdown
+ except ImportError:
print '>>> Exception raised importing the "markdown" module'
print '>>> Are you sure you have the ElementTree module installed?'
print ' http://effbot.org/downloads/#elementtree'
diff --git a/src/contrib/__init__.py b/src/contrib/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/src/contrib/__init__.py
+++ /dev/null