Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
06788c9f
Commit
06788c9f
authored
Jan 03, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few remaining problems found by rstlint.
parent
d509788f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
16 deletions
+16
-16
Doc/extending/newtypes.rst
Doc/extending/newtypes.rst
+1
-1
Doc/howto/regex.rst
Doc/howto/regex.rst
+1
-1
Doc/library/bdb.rst
Doc/library/bdb.rst
+1
-1
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+2
-2
Doc/library/xmlrpc.client.rst
Doc/library/xmlrpc.client.rst
+2
-2
Doc/reference/lexical_analysis.rst
Doc/reference/lexical_analysis.rst
+1
-1
Doc/reference/simple_stmts.rst
Doc/reference/simple_stmts.rst
+2
-2
Doc/tutorial/classes.rst
Doc/tutorial/classes.rst
+1
-1
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+2
-2
Doc/using/unix.rst
Doc/using/unix.rst
+2
-2
Doc/whatsnew/2.4.rst
Doc/whatsnew/2.4.rst
+1
-1
No files found.
Doc/extending/newtypes.rst
View file @
06788c9f
...
@@ -1216,7 +1216,7 @@ Here is an example::
...
@@ -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;
}
}
...
...
Doc/howto/regex.rst
View file @
06788c9f
...
@@ -611,7 +611,7 @@ of each one.
...
@@ -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
...
...
Doc/library/bdb.rst
View file @
06788c9f
...
@@ -335,7 +335,7 @@ Finally, the module defines the following functions:
...
@@ -335,7 +335,7 @@ Finally, the module defines the following functions:
Determine if there is an effective (active) breakpoint at this line of code.
Determine if there is an effective (active) breakpoint at this line of code.
Return breakpoint number or 0 if none.
Return breakpoint number or 0 if none.
Called only if we know there is a breakpoint at this location. Returns the
Called only if we know there is a breakpoint at this location. Returns the
breakpoint that was triggered and a flag that indicates if it is ok to delete
breakpoint that was triggered and a flag that indicates if it is ok to delete
a temporary breakpoint.
a temporary breakpoint.
...
...
Doc/library/urllib.request.rst
View file @
06788c9f
...
@@ -49,8 +49,8 @@ The :mod:`urllib.request` module defines the following functions:
...
@@ -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)
...
...
Doc/library/xmlrpc.client.rst
View file @
06788c9f
...
@@ -513,8 +513,8 @@ transport. The following example shows how:
...
@@ -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):
...
...
Doc/reference/lexical_analysis.rst
View file @
06788c9f
...
@@ -608,7 +608,7 @@ Some examples of integer literals::
...
@@ -608,7 +608,7 @@ Some examples of integer literals::
7 2147483647 0o177 0b100110111
7 2147483647 0o177 0b100110111
3 79228162514264337593543950336 0o377 0x100000000
3 79228162514264337593543950336 0o377 0x100000000
79228162514264337593543950336 0xdeadbeef
79228162514264337593543950336 0xdeadbeef
.. _floating:
.. _floating:
...
...
Doc/reference/simple_stmts.rst
View file @
06788c9f
...
@@ -871,8 +871,8 @@ The :keyword:`nonlocal` statement
...
@@ -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
...
...
Doc/tutorial/classes.rst
View file @
06788c9f
...
@@ -789,7 +789,7 @@ easy to create::
...
@@ -789,7 +789,7 @@ easy to create::
f
f
l
l
o
o
g
g
Anything that can be done with generators can also be done with class based
Anything that can be done with generators can also be done with class based
iterators as described in the previous section. What makes generators so
iterators as described in the previous section. What makes generators so
...
...
Doc/tutorial/datastructures.rst
View file @
06788c9f
...
@@ -519,7 +519,7 @@ with the :func:`zip` function. ::
...
@@ -519,7 +519,7 @@ with the :func:`zip` function. ::
>>> answers = ['lancelot', 'the holy grail', 'blue']
>>> answers = ['lancelot', 'the holy grail', 'blue']
>>> for q, a in zip(questions, answers):
>>> for q, a in zip(questions, answers):
... print('What is your {0}? It is {1}.'.format(q, a))
... print('What is your {0}? It is {1}.'.format(q, a))
...
...
What is your name? It is lancelot.
What is your name? It is lancelot.
What is your quest? It is the holy grail.
What is your quest? It is the holy grail.
What is your favorite color? It is blue.
What is your favorite color? It is blue.
...
@@ -542,7 +542,7 @@ returns a new sorted list while leaving the source unaltered. ::
...
@@ -542,7 +542,7 @@ returns a new sorted list while leaving the source unaltered. ::
>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> for f in sorted(set(basket)):
>>> for f in sorted(set(basket)):
... print(f)
... print(f)
...
...
apple
apple
banana
banana
orange
orange
...
...
Doc/using/unix.rst
View file @
06788c9f
...
@@ -19,7 +19,7 @@ Python comes preinstalled on most Linux distributions, and is available as a
...
@@ -19,7 +19,7 @@ Python comes preinstalled on most Linux distributions, and is available as a
package
on
all
others
.
However
there
are
certain
features
you
might
want
to
use
package
on
all
others
.
However
there
are
certain
features
you
might
want
to
use
that
are
not
available
on
your
distro
's package. You can easily compile the
that
are
not
available
on
your
distro
's package. You can easily compile the
latest version of Python from source.
latest version of Python from source.
In the event that Python doesn'
t
come
preinstalled
and
isn
't in the repositories as
In the event that Python doesn'
t
come
preinstalled
and
isn
't in the repositories as
well, you can easily make packages for your own distro. Have a look at the
well, you can easily make packages for your own distro. Have a look at the
following links:
following links:
...
@@ -46,7 +46,7 @@ On FreeBSD and OpenBSD
...
@@ -46,7 +46,7 @@ On FreeBSD and OpenBSD
* OpenBSD users use::
* OpenBSD users use::
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/<insert your architecture here>/python-<version>.tgz
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/<insert your architecture here>/python-<version>.tgz
For example i386 users get the 2.5.1 version of Python using::
For example i386 users get the 2.5.1 version of Python using::
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz
...
...
Doc/whatsnew/2.4.rst
View file @
06788c9f
...
@@ -1175,7 +1175,7 @@ complete list of changes, or look through the CVS logs for all the details.
...
@@ -1175,7 +1175,7 @@ complete list of changes, or look through the CVS logs for all the details.
import logging
import logging
logging.basicConfig(filename='/var/log/application.log',
logging.basicConfig(filename='/var/log/application.log',
level=0, # Log all messages
level=0, # Log all messages
format='%(levelname):%(process):%(thread):%(message)')
format='%(levelname):%(process):%(thread):%(message)')
Other additions to the :mod:`logging` package include a :meth:`log(level, msg)`
Other additions to the :mod:`logging` package include a :meth:`log(level, msg)`
convenience method, as well as a :class:`TimedRotatingFileHandler` class that
convenience method, as well as a :class:`TimedRotatingFileHandler` class that
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment