summaryrefslogtreecommitdiff
path: root/docs/reference.txt
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2008-11-19 18:28:42 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2008-11-19 18:28:42 +0000
commitf61d73dbf78b70377b8ead8292c616e8b5ed06a7 (patch)
treeeef7ed1c7961ba093b15e170862b52db412a944c /docs/reference.txt
parentac9e22662a2d9c3ee6b554c171593049fd08ff8c (diff)
downloadwebob-f61d73dbf78b70377b8ead8292c616e8b5ed06a7.tar.gz
more jython compat for doctests; don't assume cStringIO's repr
Diffstat (limited to 'docs/reference.txt')
-rw-r--r--docs/reference.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/reference.txt b/docs/reference.txt
index 32fc981..91fbe86 100644
--- a/docs/reference.txt
+++ b/docs/reference.txt
@@ -68,7 +68,7 @@ constructor that will fill in a minimal environment:
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'wsgi.errors': <open file '<stderr>', mode 'w' at ...>,
- 'wsgi.input': <cStringIO.StringI object at ...>,
+ 'wsgi.input': <cStringIO... object at ...>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
@@ -86,13 +86,14 @@ file-like object. You can read the entire body with
.. code-block:: python
- >>> req.body_file
- <cStringIO.StringI object at ...>
+ >>> import cStringIO
+ >>> isinstance(req.body_file, cStringIO.InputType)
+ True
>>> req.body
''
>>> req.body = 'test'
- >>> req.body_file
- <cStringIO.StringI object at ...>
+ >>> isinstance(req.body_file, cStringIO.InputType)
+ True
>>> req.body
'test'
@@ -912,7 +913,7 @@ A possible pattern for your application might be:
SERVER_PORT: '80'
SERVER_PROTOCOL: 'HTTP/1.0'
wsgi.errors: <open file '<stderr>', mode 'w' at ...>
- wsgi.input: <cStringIO.StringI object at ...>
+ wsgi.input: <cStringIO... object at ...>
wsgi.multiprocess: False
wsgi.multithread: False
wsgi.run_once: False