8000 Update docs · thecodingchicken/python-future@3950a1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3950a1f

Browse files
committed
Update docs
1 parent 03a9164 commit 3950a1f

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

docs/source/automatic_conversion.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ into this code which runs on both Py2 and Py3::
6969
pass
7070
print('Hello', end=None)
7171

72-
Notice that in both cases ``futurize`` forces a new-style class and
72+
Notice that in both this case and when converting from Py2 above,
73+
``futurize`` creates a new-style class on both Python versions and
7374
imports the renamed stdlib module under its Py3 name.
7475

7576
``futurize --from3`` also handles the following Python 3 features:

docs/source/conf.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,24 @@
4343

4444
# General information about the project.
4545
project = u'Python-Future'
46-
copyright = u'2013, Ed Schofield'
46+
copyright = u'2013, Python Charmers'
4747

4848
# The version info for the project you're documenting, acts as replacement for
4949
# |version| and |release|, also used in various other places throughout the
5050
# built documents.
5151
#
5252
# The short X.Y version.
53-
import pkg_resources
54-
try:
55-
release = pkg_resources.get_distribution('future').version
56-
except ImportError:
57-
print('To build the documentation, The distribution information of python-future')
58-
print('must be available. Please install the package into your')
59-
print('development environment. A virtualenv is recommended!')
60-
sys.exit(1)
61-
if 'dev' in release:
62-
release = release.split('dev')[0] + 'dev'
53+
# import pkg_resources
54+
# try:
55+
# release = pkg_resources.get_distribution('future').version
56+
# except ImportError:
57+
# print('To build the documentation, The distribution information of python-future')
58+
# print('must be available. Please install the package into your')
59+
# print('development environment. A virtualenv is recommended!')
60+
# sys.exit(1)
61+
# if 'dev' in release:
62+
# release = release.split('dev')[0] + 'dev'
63+
release = '0.6.0'
6364
version = '.'.join(release.split('.')[:2])
6465

6566
# The language for content autogenerated by Sphinx. Refer to documentation

docs/source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Features
1616
- backports or remappings for 15 builtins with different semantics on
1717
Py3 versus Py2
1818
- supports the reorganized Py3 standard library interface
19-
- 220+ unit tests
19+
- 260+ unit tests
2020
- clean on Py3: ``future`` imports and decorators have no effect on Py3
2121
(and no namespace pollution)
2222
- ``futurize`` script for automatic conversion from either Py2 or Py3

docs/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To install the latest stable version, type::
1919

2020
pip install future
2121

22-
If you would prefer the latest development version, it is available `here <https://github.com/PythonCharmers/python-future">`_.
22+
If you would prefer the latest development version, it is available `here <https://github.com/PythonCharmers/python-future>`_.
2323

2424

2525
If you are writing code from scratch

0 commit comments

Comments
 (0)
0