File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ into this code which runs on both Py2 and Py3::
69
69
pass
70
70
print('Hello', end=None)
71
71
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
73
74
imports the renamed stdlib module under its Py3 name.
74
75
75
76
``futurize --from3 `` also handles the following Python 3 features:
Original file line number Diff line number Diff line change 43
43
44
44
# General information about the project.
45
45
project = u'Python-Future'
46
- copyright = u'2013, Ed Schofield '
46
+ copyright = u'2013, Python Charmers '
47
47
48
48
# The version info for the project you're documenting, acts as replacement for
49
49
# |version| and |release|, also used in various other places throughout the
50
50
# built documents.
51
51
#
52
52
# 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'
63
64
version = '.' .join (release .split ('.' )[:2 ])
64
65
65
66
# The language for content autogenerated by Sphinx. Refer to documentation
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Features
16
16
- backports or remappings for 15 builtins with different semantics on
17
17
Py3 versus Py2
18
18
- supports the reorganized Py3 standard library interface
19
- - 220 + unit tests
19
+ - 260 + unit tests
20
20
- clean on Py3: ``future `` imports and decorators have no effect on Py3
21
21
(and no namespace pollution)
22
22
- ``futurize `` script for automatic conversion from either Py2 or Py3
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ To install the latest stable version, type::
19
19
20
20
pip install future
21
21
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 >`_.
23
23
24
24
25
25
If you are writing code from scratch
You can’t perform that action at this time.
0 commit comments