Fix a few remaining problems found by rstlint.

This commit is contained in:
Georg Brandl 2009-01-03 21:31:47 +00:00
parent d509788f98
commit 06788c9fe4
11 changed files with 16 additions and 16 deletions

View file

@ -1216,7 +1216,7 @@ Here is an example::
PyErr_Format(PyExc_AttributeError, PyErr_Format(PyExc_AttributeError,
"'%.50s' object has no attribute '%.400s'", "'%.50s' object has no attribute '%.400s'",
tp->tp_name, name); tp->tp_name, name);
return NULL; return NULL;
} }

View file

@ -611,7 +611,7 @@ of each one.
is to read? :: is to read? ::
charref = re.compile(r""" charref = re.compile(r"""
&[#] # Start of a numeric entity reference &[#] # Start of a numeric entity reference
( (
0[0-7]+ # Octal form 0[0-7]+ # Octal form
| [0-9]+ # Decimal form | [0-9]+ # Decimal form

View file

@ -49,8 +49,8 @@ The :mod:`urllib.request` module defines the following functions:
The urlopen function from the previous version, Python 2.6 and earlier, of The urlopen function from the previous version, Python 2.6 and earlier, of
the module urllib has been discontinued as urlopen can return the the module urllib has been discontinued as urlopen can return the
file-object as the previous. The proxy handling, which in earlier was passed file-object as the previous. The proxy handling, which in earlier was passed
as a dict parameter to urlopen can be availed by the use of `ProxyHandler` as a dict parameter to urlopen can be availed by the use of
objects. :class:`ProxyHandler` objects.
.. function:: install_opener(opener) .. function:: install_opener(opener)

View file

@ -513,8 +513,8 @@ transport. The following example shows how:
self.proxy = proxy self.proxy = proxy
def make_connection(self, host): def make_connection(self, host):
self.realhost = host self.realhost = host
h = http.client.HTTP(self.proxy) h = http.client.HTTP(self.proxy)
return h return h
def send_request(self, connection, handler, request_body): def send_request(self, connection, handler, request_body):
connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler)) connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler))
def send_host(self, connection, host): def send_host(self, connection, host):

View file

@ -871,8 +871,8 @@ The :keyword:`nonlocal` statement
nonlocal_stmt: "nonlocal" `identifier` ("," `identifier`)* nonlocal_stmt: "nonlocal" `identifier` ("," `identifier`)*
.. XXX add when implemented .. XXX add when implemented
: ["=" (`target_list` "=")+ `expression_list`] : ["=" (`target_list` "=")+ expression_list]
: | "nonlocal" `identifier` `augop` `expression_list` : | "nonlocal" identifier augop expression_list
The :keyword:`nonlocal` statement causes the listed identifiers to refer to The :keyword:`nonlocal` statement causes the listed identifiers to refer to
previously bound variables in the nearest enclosing scope. This is important previously bound variables in the nearest enclosing scope. This is important