Skip to content

Commit 91aab45

Browse files
committed
Update What's New doc
1 parent 3d6c5ed commit 91aab45

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

docs/whatsnew.rst

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
.. whats-new-0.13
2-
3-
What's New in v0.13.0
4-
*********************
5-
6-
The following internal modules are deprecated. They will be removed in the next
7-
major release:
8-
9-
- ``future.utils.encoding`` and ``future.utils.six``.
10-
11-
See `here <http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries`_ for a rationale for unbundling them.
12-
13-
14-
.. whats-new-0.12.4:
1+
.. _whats-new-0.12.x:
152

163
What's New in v0.12.x
174
*********************
185

19-
20-
.. whats-new-0.12.5:
6+
.. _whats-new-0.12.5:
217

228
What's new in version 0.12.5
239
============================
@@ -33,17 +19,18 @@ What's new in version 0.12.5
3319
...`` syntax (issue #86).
3420
- Prevent introduction of a second set of parentheses in ``print()`` calls in
3521
some further cases.
22+
- Fix isinstance checks for subclasses of future types (issue #89).
3623

3724

38-
.. whats-new-0.12.4:
25+
.. _whats-new-0.12.4:
3926

4027
What's new in version 0.12.4
4128
============================
4229

4330
- Fix upcasting behaviour of newint (issue #76).
4431

4532

46-
.. whats-new-0.12.3:
33+
.. _whats-new-0.12.3:
4734

4835
What's new in version 0.12.3
4936
============================
@@ -74,7 +61,7 @@ What's new in version 0.12.3
7461
- Add list of fixers used by ``futurize`` (issue #58).
7562
- Add list of contributors to the Credits page.
7663

77-
.. whats-new-0.12.2:
64+
.. _whats-new-0.12.2:
7865

7966
What's new in version 0.12.2
8067
============================
@@ -85,7 +72,7 @@ What's new in version 0.12.2
8572
- Bug fix for ``newlist(newlist([1, 2, 3]))`` (issue #50).
8673

8774

88-
.. whats-new-0.12.1:
75+
.. _whats-new-0.12.1:
8976

9077
What's new in version 0.12.1
9178
============================
@@ -97,7 +84,7 @@ What's new in version 0.12.1
9784
- Doc updates
9885

9986

100-
.. whats-new-0.12:
87+
.. _whats-new-0.12:
10188

10289
What's new in version 0.12.0
10390
============================

future/tests/test_futurize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ def __truediv__(self, other):
11441144
"""
11451145
after = """
11461146
from __future__ import division
1147-
from past.utils import old_div
1147+
from past.utils import div
11481148
class Path(str):
11491149
def __div__(self, other):
11501150
return self.__truediv__(other)

past/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
>>> div(3, 2.0) # like 3/2.0 in Py2
4242
1.5
4343
44+
This is an alias for ``future.utils.old_div``.
45+
4446
>>> # List-producing versions of range, reduce, map, filter
4547
>>> from past.builtins import range, reduce
4648
>>> range(10)

past/utils/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def native(obj):
6565
return obj
6666

6767

68+
# An alias for future.utils.old_div():
6869
def old_div(a, b):
6970
"""
7071
Equivalent to ``a / b`` on Python 2 without ``from __future__ import
@@ -77,6 +78,4 @@ def old_div(a, b):
7778
else:
7879
return a / b
7980

80-
8181
__all__ = ['PY3', 'PY2', 'PYPY', 'with_metaclass', 'native', 'old_div']
82-

0 commit comments

Comments
 (0)