diff options
author | pjenvey <devnull@localhost> | 2007-01-22 01:15:11 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2007-01-22 01:15:11 +0000 |
commit | 4a2ca4cc0bdaa79a00f6a4979d43be59b03063bf (patch) | |
tree | 528f272b70ba6e5233e4ebc3f3f21093d83dd07b /paste/wsgiwrappers.py | |
parent | c1a3c07b6df59a6e78b887cd9a37b5838b9f285b (diff) | |
download | paste-4a2ca4cc0bdaa79a00f6a4979d43be59b03063bf.tar.gz |
small changes
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r-- | paste/wsgiwrappers.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py index decc275..2e7a667 100644 --- a/paste/wsgiwrappers.py +++ b/paste/wsgiwrappers.py @@ -87,9 +87,9 @@ class WSGIRequest(object): if self.charset: # There's a charset: params will be coerced to unicode. In that # case, attempt to use the charset specified by the browser - charset = self.determine_browser_charset() - if charset: - self.charset = charset + browser_charset = self.determine_browser_charset() + if browser_charset: + self.charset = browser_charset self.errors = defaults.get('errors', 'strict') body = environ_getter('wsgi.input') @@ -126,7 +126,8 @@ class WSGIRequest(object): """ params = self._GET() if self.charset: - params = UnicodeMultiDict(params, self.charset, self.errors) + params = UnicodeMultiDict(params, encoding=self.charset, + errors=self.errors) return params GET = property(GET, doc=GET.__doc__) @@ -151,7 +152,8 @@ class WSGIRequest(object): """ params = self._POST() if self.charset: - params = UnicodeMultiDict(params, self.charset, self.errors) + params = UnicodeMultiDict(params, encoding=self.charset, + errors=self.errors) return params POST = property(POST, doc=POST.__doc__) @@ -174,7 +176,8 @@ class WSGIRequest(object): params.update(self._POST()) params.update(self._GET()) if self.charset: - params = UnicodeMultiDict(params, self.charset, self.errors) + params = UnicodeMultiDict(params, encoding=self.charset, + errors=self.errors) return params params = property(params, doc=params.__doc__) |