diff options
| author | Michael Merickel <michael@merickel.org> | 2019-01-05 13:31:25 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2019-01-05 13:31:51 -0600 |
| commit | afb06fd95cd225fc2aae06b710e3968a89d64353 (patch) | |
| tree | 29ca08275661c14932955d380ff0648752fc5f2e /src | |
| parent | c02f228b554d636d475ad1f34945fd91e4b1bfdf (diff) | |
| download | pyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.tar.gz pyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.tar.bz2 pyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.zip | |
drop mimetypes bugfix for 2.6.x that is no longer needed
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/response.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/pyramid/response.py b/src/pyramid/response.py index ea4677226..1ccf4fbdc 100644 --- a/src/pyramid/response.py +++ b/src/pyramid/response.py @@ -7,20 +7,6 @@ from webob import Response as _Response from zope.interface import implementer from pyramid.interfaces import IResponse, IResponseFactory - -def init_mimetypes(mimetypes): - # this is a function so it can be unittested - if hasattr(mimetypes, 'init'): - mimetypes.init() - return True - return False - - -# 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). -init_mimetypes(mimetypes) - _BLOCK_SIZE = 4096 * 64 # 256K |
