Skip to content

Commit

Permalink
more jython compat for doctests; don't assume cStringIO's repr
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Nov 19, 2008
1 parent ac9e226 commit f61d73d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/reference.txt
Expand Up @@ -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,
Expand All @@ -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'

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f61d73d

Please sign in to comment.