diff options
| author | Sergey Schetinin <sergey@maluke.com> | 2012-06-16 12:53:33 +0300 |
|---|---|---|
| committer | Sergey Schetinin <sergey@maluke.com> | 2012-06-16 12:53:33 +0300 |
| commit | 89a37a10686de0a1530f490ee8a3609015f415b6 (patch) | |
| tree | f2840a13f4bee6266750c513d7e119be636c5e41 /docs/reference.txt | |
| parent | 6476aba25eb639d761ea056f10d59a1fc7b1faf9 (diff) | |
| download | webob-89a37a10686de0a1530f490ee8a3609015f415b6.tar.gz | |
fix doc references to deprecated classes
Diffstat (limited to 'docs/reference.txt')
| -rw-r--r-- | docs/reference.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/reference.txt b/docs/reference.txt index 5269e84..3483dc0 100644 --- a/docs/reference.txt +++ b/docs/reference.txt @@ -199,7 +199,7 @@ Some examples: >>> req = Request.blank('/test?check=a&check=b&name=Bob') >>> req.GET - UnicodeMultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) + MultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) >>> req.GET['check'] u'b' >>> req.GET.getall('check') @@ -219,7 +219,7 @@ POST. Until we do that, the variables are boring: >>> req.method = 'POST' >>> req.body = 'name=Joe&email=joe@example.com' >>> req.POST - UnicodeMultiDict([(u'name', u'Joe'), (u'email', u'joe@example.com')]) + MultiDict([(u'name', u'Joe'), (u'email', u'joe@example.com')]) >>> req.POST['name'] u'Joe' @@ -255,9 +255,9 @@ Content-Type. >>> req.environ['CONTENT_LENGTH'] = str(len(req.body)) >>> req.environ['CONTENT_TYPE'] = 'application/x-www-form-urlencoded' >>> req.GET - UnicodeMultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) + MultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) >>> req.POST - UnicodeMultiDict([(u'var1', u'value1'), (u'var2', u'value2'), (u'rep', u'1'), (u'rep', u'2')]) + MultiDict([(u'var1', u'value1'), (u'var2', u'value2'), (u'rep', u'1'), (u'rep', u'2')]) Unicode Variables ~~~~~~~~~~~~~~~~~ @@ -274,7 +274,7 @@ all the variables: >>> req.charset = 'utf8' >>> req.GET - UnicodeMultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) + MultiDict([(u'check', u'a'), (u'check', u'b'), (u'name', u'Bob')]) Cookies ------- @@ -286,7 +286,7 @@ they will be decoded into Unicode strings if you set the charset. >>> req.headers['Cookie'] = 'test=value' >>> req.cookies - UnicodeMultiDict([(u'test', u'value')]) + MultiDict([(u'test', u'value')]) Modifying the request --------------------- |
