Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef871f6

Browse files
committed
Merged revisions 78859-78860 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r78859 | georg.brandl | 2010-03-12 10:57:43 +0100 (Fr, 12 Mär 2010) | 1 line Get rid of backticks. ........ r78860 | georg.brandl | 2010-03-12 11:02:03 +0100 (Fr, 12 Mär 2010) | 1 line Fix warnings from "make check". ........
1 parent 420ca77 commit ef871f6

10 files changed

Lines changed: 24 additions & 24 deletions

File tree

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ in various ways. There is a separate error indicator for each thread.
214214
.. note::
215215

216216
The `"%lld"` and `"%llu"` format specifiers are only available
217-
when `HAVE_LONG_LONG` is defined.
217+
when :const:`HAVE_LONG_LONG` is defined.
218218

219219
.. versionchanged:: 3.2
220220
Support for `"%lld"` and `"%llu"` added.

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ APIs:
313313
.. note::
314314

315315
The `"%lld"` and `"%llu"` format specifiers are only available
316-
when `HAVE_LONG_LONG` is defined.
316+
when :const:`HAVE_LONG_LONG` is defined.
317317

318318
.. versionchanged:: 3.2
319319
Support for `"%lld"` and `"%llu"` added.

Doc/distutils/examples.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ Running the ``check`` command will display some warnings::
257257
(maintainer and maintainer_email) must be supplied
258258

259259

260-
If you use the reStructuredText syntax in the `long_description` field and
260+
If you use the reStructuredText syntax in the ``long_description`` field and
261261
`docutils <http://docutils.sourceforge.net/>`_ is installed you can check if
262-
the syntax is fine with the ``check`` command, using the `restructuredtext`
262+
the syntax is fine with the ``check`` command, using the ``restructuredtext``
263263
option.
264264

265265
For example, if the :file:`setup.py` script is changed like this::
@@ -278,7 +278,7 @@ For example, if the :file:`setup.py` script is changed like this::
278278
url='http://example.com', long_description=desc)
279279

280280
Where the long description is broken, ``check`` will be able to detect it
281-
by using the `docutils` parser::
281+
by using the :mod:`docutils` parser::
282282

283283
$ pythontrunk setup.py check --restructuredtext
284284
running check
@@ -293,20 +293,20 @@ Reading the metadata
293293

294294
The :func:`distutils.core.setup` function provides a command-line interface
295295
that allows you to query the metadata fields of a project through the
296-
`setup.py` script of a given project::
296+
:file:`setup.py` script of a given project::
297297

298298
$ python setup.py --name
299299
distribute
300300

301-
This call reads the `name` metadata by running the
301+
This call reads the ``name`` metadata by running the
302302
:func:`distutils.core.setup` function. Although, when a source or binary
303303
distribution is created with Distutils, the metadata fields are written
304304
in a static file called :file:`PKG-INFO`. When a Distutils-based project is
305305
installed in Python, the :file:`PKG-INFO` file is copied alongside the modules
306306
and packages of the distribution under :file:`NAME-VERSION-pyX.X.egg-info`,
307-
where `NAME` is the name of the project, `VERSION` its version as defined
308-
in the Metadata, and `pyX.X` the major and minor version of Python like
309-
`2.7` or `3.2`.
307+
where ``NAME`` is the name of the project, ``VERSION`` its version as defined
308+
in the Metadata, and ``pyX.X`` the major and minor version of Python like
309+
``2.7`` or ``3.2``.
310310

311311
You can read back this static file, by using the
312312
:class:`distutils.dist.DistributionMetadata` class and its

Doc/distutils/uploading.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ in the package::
6060
setup(name='Distutils',
6161
long_description=open('README.txt'))
6262

63-
In that case, `README.txt` is a regular reStructuredText text file located
64-
in the root of the package besides `setup.py`.
63+
In that case, :file:`README.txt` is a regular reStructuredText text file located
64+
in the root of the package besides :file:`setup.py`.
6565

6666
To prevent registering broken reStructuredText content, you can use the
67-
:program:`rst2html` program that is provided by the `docutils` package
67+
:program:`rst2html` program that is provided by the :mod:`docutils` package
6868
and check the ``long_description`` from the command line::
6969

7070
$ python setup.py --long-description | rst2html.py > output.html
7171

72-
`docutils` will display a warning if there's something wrong with your syntax.
72+
:mod:`docutils` will display a warning if there's something wrong with your syntax.

Doc/library/http.client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ statement.
498498

499499
.. attribute:: HTTPResponse.debuglevel
500500

501-
A debugging hook. If `debuglevel` is greater than zero, messages
501+
A debugging hook. If :attr:`debuglevel` is greater than zero, messages
502502
will be printed to stdout as the response is read and parsed.
503503

504504

Doc/library/logging.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,12 +1210,12 @@ swallowed. Other exceptions which occur during the :meth:`emit` method of a
12101210
:class:`Handler` subclass are passed to its :meth:`handleError` method.
12111211

12121212
The default implementation of :meth:`handleError` in :class:`Handler` checks
1213-
to see if a module-level variable, `raiseExceptions`, is set. If set, a
1214-
traceback is printed to `sys.stderr`. If not set, the exception is swallowed.
1213+
to see if a module-level variable, :data:`raiseExceptions`, is set. If set, a
1214+
traceback is printed to :data:`sys.stderr`. If not set, the exception is swallowed.
12151215

1216-
**Note:** The default value of `raiseExceptions` is `True`. This is because
1216+
**Note:** The default value of :data:`raiseExceptions` is ``True``. This is because
12171217
during development, you typically want to be notified of any exceptions that
1218-
occur. It's advised that you set `raiseExceptions` to `False` for production
1218+
occur. It's advised that you set :data:`raiseExceptions` to ``False`` for production
12191219
usage.
12201220

12211221
.. _context-info:

Doc/library/site.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ empty, and the path manipulations are skipped; however the import of
124124

125125
.. function:: getuserbase()
126126

127-
Returns the `user base` directory path.
127+
Returns the "user base" directory path.
128128

129-
The `user base` directory can be used to store data. If the global
129+
The "user base" directory can be used to store data. If the global
130130
variable ``USER_BASE`` is not initialized yet, this function will also set
131131
it.
132132

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ always available.
339339
specific.
340340

341341
If given, *default* will be returned if the object does not provide means to
342-
retrieve the size. Otherwise a `TypeError` will be raised.
342+
retrieve the size. Otherwise a :exc:`TypeError` will be raised.
343343

344344
:func:`getsizeof` calls the object's ``__sizeof__`` method and adds an
345345
additional garbage collector overhead if the object is managed by the garbage

Doc/whatsnew/2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ understand the complete implementation and design rationale for a change, refer
3030
to the PEP for a particular new feature.
3131

3232

33-
.. seealso (now defunct)
33+
.. see also, now defunct
3434
3535
http://www.unixreview.com/documents/s=1356/urm0109h/0109h.htm
3636
"What's So Special About Python 2.2?" is also about the new 2.2 features, and

Doc/whatsnew/2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ changes, or look through the Subversion logs for all the details.
539539

540540
Contributed by Raymond Hettinger; :issue:`1696199`.
541541

542-
The new `OrderedDict` class is described in the earlier section
542+
The new `~collections.OrderedDict` class is described in the earlier section
543543
:ref:`pep-0372`.
544544

545545
The :class:`namedtuple` class now has an optional *rename* parameter.

0 commit comments

Comments
 (0)