Skip to content

Commit 2bd8681

Browse files
committed
Merge pull request #74 from QuLogic/doc-fix
Small doc fixes
2 parents 62c1627 + e97e3c1 commit 2bd8681

17 files changed

+68
-74
lines changed

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ the top of each module.
163163
In both cases, the result should be relatively clean Py3-style code that runs
164164
mostly unchanged on both Python 2 and Python 3.
165165

166-
.. _forwards-conversion:
167-
168166
Futurize: 2 to both
169167
~~~~~~~~~~~~~~~~~~~
170168

docs/changelog.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ As usual, this feature has no effect on Python 3.
315315

316316

317317

318-
Utility functions raise_ and exec_
319-
----------------------------------
318+
Utility functions ``raise_`` and ``exec_``
319+
------------------------------------------
320320

321321
The functions ``raise_with_traceback()`` and ``raise_()`` were
322322
added to ``future.utils`` to offer either the Python 3.x or Python 2.x
@@ -463,19 +463,19 @@ v0.11.4:
463463

464464
v0.11.3:
465465
* The ``futurize`` and ``pasteurize`` scripts add an explicit call to
466-
``future.standard_library.install_hooks()`` whenever modules affected by PEP
467-
3108 are imported.
466+
``future.standard_library.install_hooks()`` whenever modules affected by
467+
PEP 3108 are imported.
468468

469469
* The ``future.builtins.bytes`` constructor now accepts ``frozenset``
470-
objects as on Py3.
470+
objects as on Py3.
471471

472472
v0.11.2:
473473
* The ``past.autotranslate`` feature now finds modules to import more
474-
robustly and works with Python eggs.
474+
robustly and works with Python eggs.
475475

476476
v0.11.1:
477477
* Update to ``requirements_py26.txt`` for Python 2.6. Small updates to
478-
docs and tests.
478+
docs and tests.
479479

480480
v0.11:
481481
* New ``past`` package with ``past.builtins`` and ``past.translation``

docs/contents.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Contents:
1212
what_else
1313
automatic_conversion
1414
porting
15-
standard_library_incompatibilities
15+
stdlib_incompatibilities
1616
faq
1717
changelog
1818
credits

docs/conversion_limitations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Contributions to the ``lib2to3``-based fixers for ``futurize`` and
1515
``pasteurize`` are particularly welcome! Please see :ref:`contributing`.
1616

1717

18-
.. _futurize-limitations
18+
.. _futurize-limitations:
1919

2020
Known limitations
2121
-----------------
2222

23-
``futurize`` doesn't currently make this change automatically::
23+
``futurize`` doesn't currently make this change automatically:
2424

2525
1. Strings containing ``\U`` produce a ``SyntaxError`` on Python 3. An example is::
2626

docs/faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ fewer compatibility hacks.
234234

235235

236236
What is the relationship between ``python-future`` and ``python-modernize``?
237-
-----------------------------------------------------------------------
237+
----------------------------------------------------------------------------
238238

239239
``python-future`` contains, in addition to the ``future`` compatibility
240240
package, a ``futurize`` script that is similar to ``python-modernize.py``
@@ -257,7 +257,7 @@ Platform and version support
257257
.. _supported-versions:
258258

259259
Which versions of Python does ``python-future`` support?
260-
-------------------------------------------------
260+
--------------------------------------------------------
261261

262262
Python 2.6, 2.7, and 3.3+ only.
263263

@@ -289,7 +289,7 @@ and pull requests are welcome!
289289

290290

291291
Do you support IronPython and/or Jython?
292-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
292+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
293293

294294
Not sure. This would be nice...
295295

docs/features_incomplete.rst

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/imports.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Imports
44
=======
55

6-
.. ___future__-imports:
6+
.. _-__future__-imports:
77

88
__future__ imports
99
------------------

docs/pasteurize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _backwards-conversion:
22

33
Pasteurize: 3 to both
4-
--------------------
4+
---------------------
55

66
Running ``pasteurize -w mypy3module.py`` turns this Python 3 code::
77

docs/roadmap.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ futurize script
55
---------------
66

77
1. "Safe" mode -- from Py2 to modern Py2 or Py3 to more-compatible Py3
8+
89
- Split the fixers into two categories: safe and bold
910
- Safe is highly unlikely to break existing Py2 or Py3 support. The
1011
output of this still requires :mod:`future` imports. Examples:
11-
- Compatible metaclass syntax on Py3
12-
- Explicit inheritance from object on Py3
12+
13+
- Compatible metaclass syntax on Py3
14+
- Explicit inheritance from object on Py3
1315

1416
- Bold might make assumptions about which strings on Py2 should be
1517
unicode strings and which should be bytestrings.
18+
1619
- We should also build up a database of which standard library
1720
interfaces on Py2 and Py3 accept unicode strings versus
1821
byte-strings, which have changed, and which haven't.

docs/standard_library_imports.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ One workaround is to replace the dot with an underscore::
5252

5353
import future.moves.http.client as http_client
5454

55-
import_ and from_import functions
56-
---------------------------------
55+
``import_`` and ``from_import`` functions
56+
-----------------------------------------
5757

5858
A third option, which also works with two-level imports, is to use the
5959
``import_`` and ``from_import`` functions from ``future.standard_library`` as

0 commit comments

Comments
 (0)