Commits

php committed eb18062

Make compatible with werkzeug 0.6.2

  • Participants
  • Parent commits f3cd950

Comments (0)

Files changed (1)

File blatter/__init__.py

 from ConfigParser import ConfigParser
 from StringIO import StringIO
 import jinja2
+from werkzeug import responder, SharedDataMiddleware
 from werkzeug.exceptions import abort, HTTPException, NotFound
-from werkzeug.utils import (append_slash_redirect, create_environ, responder,
-                            SharedDataMiddleware)
+from werkzeug.utils import (append_slash_redirect)
 from werkzeug.wrappers import BaseResponse
+from werkzeug.test import EnvironBuilder
 
 
 config_names = os.environ.get('BLATTER_CONFIG', 'blatter.ini, local.ini')
     return final_app
 
 def fetch_body(app, path):
-    environ = create_environ(path=path)
+    environ = EnvironBuilder(path=path).get_environ()
 
     def start_response(status, headers):
         start_response.code = int(status.split()[0])