From 3fc8484356736ef839c293d489de51f5be655620 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 14 Aug 2009 02:41:30 +0000 Subject: Coverage. --- repoze/bfg/view.py | 18 ++++++++---------- 1 file 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 -- cgit v1.2.3