Skip to content

Commit

Permalink
a few edits and typos
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.python.org/projects/python/trunk@69442 6015fed2-1504-0410-9fe1-9d1591cc4771
  • Loading branch information
benjamin.peterson committed Feb 8, 2009
1 parent 120a18d commit fd3deb6
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Doc/library/2to3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: filter
Wraps :func:`filter` in a :class:`list` call.
Wraps :func:`filter` usage in a :class:`list` call.
.. 2to3fixer:: funcattrs
Expand Down Expand Up @@ -190,16 +190,16 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: imports2
Handles other modules reanmes in the standard library. It is separate from
:2to3fixer:`imports` only because of technical limitations.
Handles other modules renames in the standard library. It is separate from
the :2to3fixer:`imports` fixer only because of technical limitations.
.. 2to3fixer:: input
Converts ``input(prompt)`` to ``eval(input(prompt))``
.. 2to3fixer:: intern
Converts :func:`intern` to :func:`sys.itern`.
Converts :func:`intern` to :func:`sys.intern`.
.. 2to3fixer:: isinstance
Expand All @@ -221,11 +221,12 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: long
Strips the ``L`` prefix on numbers and renamed :class:`long` to :class:`int`.
Strips the ``L`` prefix on long literals and renames :class:`long` to
:class:`int`.
.. 2to3fixer:: map
Wraps :func:`map` in a :class:`list` call. It also changes ``map(none, x)``
Wraps :func:`map` in a :class:`list` call. It also changes ``map(None, x)``
to ``list(x)``. Using ``from future_builtins import map`` disables this
fixer.
Expand Down Expand Up @@ -259,15 +260,15 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: paren
Add extra parenthesis where they are required in list comprehensions. For
example, ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``.
example, ``[x for x in 1, 2]`` becomes ``[x for x in (1, 2)]``.
.. 2to3fixer:: print
Converts the :keyword:`print` statement to the :func:`print` function.
.. 2to3fixer:: raises
Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` as ``raise
Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` to ``raise
E(V).with_traceback(T)``. If ``E`` is a tuple, the translation will be
incorrect because substituting tuples for exceptions has been removed in 3.0.
Expand Down Expand Up @@ -303,7 +304,7 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: throw
Fixes the API change in generators :meth:`throw` method.
Fixes the API change in generator's :meth:`throw` method.
.. 2to3fixer:: tuple_params
Expand Down Expand Up @@ -336,7 +337,7 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: xreadlines
Change ``for x in file.xreadlines()`` to ``for x in file``.
Changes ``for x in file.xreadlines()`` to ``for x in file``.
.. 2to3fixer:: zip
Expand Down

0 comments on commit fd3deb6

Please sign in to comment.