1. Mariano Mara
  2. WebObTestCoverage

Commits

maluke  committed 7ef5d1e

fix for webob_wrap.default_request_charset

  • Participants
  • Parent commits abc44d6
  • Branches default

Comments (0)

Files changed (1)

File contrib/decorators.py

View file
  • Ignore whitespace
         else:
             return super(webob_wrap, cls).__new__(cls, *args, **kw)
 
-    def __init__(self, __func=None, default_request_charset='UTF-8', **kw):
+    def __init__(self, __func=None, **kw):
         self.func = __func
         self._original_kw = kw.copy()
-        self.default_request_charset = 'UTF-8'
+        self.default_request_charset = kw.pop('default_request_charset', 'UTF-8')
         self.kw = kw
         self._key = str(id(self))