diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-08-14 02:41:30 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-08-14 02:41:30 +0000 |
| commit | 3fc8484356736ef839c293d489de51f5be655620 (patch) | |
| tree | c6ecc16b454b1aa22af4ca4d0968f0ade0b198ce | |
| parent | af9006a8ecbff71df4fb7255873e3b7dcb737de8 (diff) | |
| download | pyramid-3fc8484356736ef839c293d489de51f5be655620.tar.gz pyramid-3fc8484356736ef839c293d489de51f5be655620.tar.bz2 pyramid-3fc8484356736ef839c293d489de51f5be655620.zip | |
Coverage.
| -rw-r--r-- | repoze/bfg/view.py | 18 |
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 |
