|
From: <mi...@us...> - 2021-05-18 21:34:28
|
Revision: 8731
http://sourceforge.net/p/docutils/code/8731
Author: milde
Date: 2021-05-18 21:34:27 +0000 (Tue, 18 May 2021)
Log Message:
-----------
Remove utils.unique_combinations().
Obsoleted by ``itertools.combinations().
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/utils/__init__.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-05-18 21:34:11 UTC (rev 8730)
+++ trunk/docutils/HISTORY.txt 2021-05-18 21:34:27 UTC (rev 8731)
@@ -27,6 +27,10 @@
- Don't use <tt> element (deprecated in HTML5).
- Support commands ``\Bbbk`` and ``operatorname``.
+* docutils/utils/__init__.py
+
+ - Removed ``unique_combinations`` (obsoleted by ``itertools.combinations``).
+
* docutils/writers/latex2e/__init__.py
- The setting `legacy_class_functions`_ now defaults to "False".
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-05-18 21:34:11 UTC (rev 8730)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-05-18 21:34:27 UTC (rev 8731)
@@ -49,9 +49,6 @@
__ docs/ref/rst/directives.html#meta
-* Remove ``utils.unique_combinations``
- (obsoleted by ``itertools.combinations``).
-
* Remove the "rawsource" attribute and argument from nodes.Text:
we store the null-escaped text in Text nodes since 0.16 so there is no
additional information in the rawsource.
@@ -101,6 +98,9 @@
- ``iepngfix.htc`` and ``blank.gif`` (IE 6 workaround for `s5_html`).
* ``nodes.Node.traverse()`` returns an iterator instead of a list.
+
+* Removed ``utils.unique_combinations``
+ (obsoleted by ``itertools.combinations``).
Release 0.17.1 (2021-04-16)
Modified: trunk/docutils/docutils/utils/__init__.py
===================================================================
--- trunk/docutils/docutils/utils/__init__.py 2021-05-18 21:34:11 UTC (rev 8730)
+++ trunk/docutils/docutils/utils/__init__.py 2021-05-18 21:34:27 UTC (rev 8731)
@@ -655,13 +655,6 @@
r.append(item)
return r
-def unique_combinations(items, n):
- """Return `itertools.combinations`."""
- warnings.warn('docutils.utils.unique_combinations is deprecated; '
- 'use itertools.combinations directly.',
- DeprecationWarning, stacklevel=2)
- return itertools.combinations(items, n)
-
def normalize_language_tag(tag):
"""Return a list of normalized combinations for a `BCP 47` language tag.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|