Commits

Georg Brandl  committed 83de16c Merge

merge with 1.0

  • Participants
  • Parent commits af3df24, 2fd693c

Comments (0)

Files changed (2)

File doc/rest.rst

 
    .. function:: foo(x)
                  foo(y, z)
-      :bar: no
+      :module: some.module.name
 
       Return a line of text input from the user.
 
 ``function`` is the directive name.  It is given two arguments here, the
-remainder of the first line and the second line, as well as one option ``bar``
-(as you can see, options are given in the lines immediately following the
-arguments and indicated by the colons).
+remainder of the first line and the second line, as well as one option
+``module`` (as you can see, options are given in the lines immediately following
+the arguments and indicated by the colons).  Options must be indented to the
+same level as the directive content.
 
 The directive content follows after a blank line and is indented relative to the
 directive start.

File sphinx/setup_command.py

         except Exception, err:
             from docutils.utils import SystemMessage
             if isinstance(err, SystemMessage):
-                sys.stderr, darkred('reST markup error:')
+                print >>sys.stderr, darkred('reST markup error:')
                 print >>sys.stderr, err.args[0].encode('ascii',
                                                        'backslashreplace')
             else: