Skip to content

Commit 0dc54ea

Browse files
committed
Add six.moves.collections_abc.
Fixes #155. Closes #241.
1 parent 1f2f571 commit 0dc54ea

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This file lists the changes in each six version.
66
1.13.0
77
------
88

9+
- Issue #155: Add `six.moves.collections_abc`, which aliases the `collections`
10+
module on Python 2-3.2 and the `collections.abc` on Python 3.3 and greater.
11+
912
- Pull request #304: Re-add distutils fallback in `setup.py`.
1013

1114
- Pull request #305: On Python 3.7, `with_metaclass` supports classes using PEP

documentation/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ Supported renames:
584584
+------------------------------+-------------------------------------+---------------------------------------+
585585
| ``cStringIO`` | :func:`py2:cStringIO.StringIO` | :class:`py3:io.StringIO` |
586586
+------------------------------+-------------------------------------+---------------------------------------+
587+
| ``collections_abc`` | :mod:`py2:collections` | :mod:`py3:collections.abc` (3.3+) |
588+
+------------------------------+-------------------------------------+---------------------------------------+
587589
| ``dbm_gnu`` | :func:`py2:gdbm` | :class:`py3:dbm.gnu` |
588590
+------------------------------+-------------------------------------+---------------------------------------+
589591
| ``dbm_ndbm`` | :func:`py2:dbm` | :func:`py3:dbm.ndbm` |

six.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class _MovedItems(_LazyModule):
255255
MovedAttribute("zip_longest", "itertools", "itertools", "izip_longest", "zip_longest"),
256256
MovedModule("builtins", "__builtin__"),
257257
MovedModule("configparser", "ConfigParser"),
258+
MovedModule("collections_abc", "collections", "collections.abc" if sys.version_info >= (3, 3) else "collections"),
258259
MovedModule("copyreg", "copy_reg"),
259260
MovedModule("dbm_gnu", "gdbm", "dbm.gnu"),
260261
MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"),

0 commit comments

Comments
 (0)