summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/view.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py
index f099c4665..ce7153249 100644
--- a/repoze/bfg/view.py
+++ b/repoze/bfg/view.py
@@ -1,18 +1,16 @@
import os
import inspect
-
import mimetypes
-try:
- # See http://bugs.python.org/issue5853 which is a recursion bug
- # that seems to effect Python 2.6, Python 2.6.1, and 2.6.2 (a fix
- # has been applied on the Python 2 trunk). This workaround should
- # really be in Paste if anywhere, but it's easiest to just do it
- # here and get it over with to avoid needing to deal with any
- # fallout.
+# See http://bugs.python.org/issue5853 which is a recursion bug
+# that seems to effect Python 2.6, Python 2.6.1, and 2.6.2 (a fix
+# has been applied on the Python 2 trunk). This workaround should
+# really be in Paste if anywhere, but it's easiest to just do it
+# here and get it over with to avoid needing to deal with any
+# fallout.
+
+if hasattr(mimetypes, 'init'):
mimetypes.init()
-except AttributeError:
- pass
from paste.urlparser import StaticURLParser