From 1f2f571cc7b3a3f57bdde604ce7b748f376adbe3 Mon Sep 17 00:00:00 2001 From: Ben Bariteau Date: Mon, 4 Nov 2019 23:11:45 -0800 Subject: Add ndbm move. (#299) --- documentation/index.rst | 2 ++ six.py | 1 + 2 files changed, 3 insertions(+) diff --git a/documentation/index.rst b/documentation/index.rst index 6753617..3b1c244 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -586,6 +586,8 @@ Supported renames: +------------------------------+-------------------------------------+---------------------------------------+ | ``dbm_gnu`` | :func:`py2:gdbm` | :class:`py3:dbm.gnu` | +------------------------------+-------------------------------------+---------------------------------------+ +| ``dbm_ndbm`` | :func:`py2:dbm` | :func:`py3:dbm.ndbm` | ++------------------------------+-------------------------------------+---------------------------------------+ | ``_dummy_thread`` | :mod:`py2:dummy_thread` | :mod:`py3:_dummy_thread` | +------------------------------+-------------------------------------+---------------------------------------+ | ``email_mime_base`` | :mod:`py2:email.MIMEBase` | :mod:`py3:email.mime.base` | diff --git a/six.py b/six.py index c09609b..49a54ea 100644 --- a/six.py +++ b/six.py @@ -257,6 +257,7 @@ _moved_attributes = [ MovedModule("configparser", "ConfigParser"), MovedModule("copyreg", "copy_reg"), MovedModule("dbm_gnu", "gdbm", "dbm.gnu"), + MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"), MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread"), MovedModule("http_cookiejar", "cookielib", "http.cookiejar"), MovedModule("http_cookies", "Cookie", "http.cookies"), -- cgit v1.2.1