Skip to content

Commit

Permalink
Point _dummy_thread to _thread on Python 3.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Jan 8, 2020
1 parent 9e824c0 commit 48ffe3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This file lists the changes in each six version.
Development version
-------------------

- Issue #317: `six.moves._dummy_thread` now points to the `_thread` module on
Python 3.9+. Python 3.7 and later requires threading and deprecated the
`_dummy_thread` module.

- Issue #308, pull request #314: Remove support for Python 2.6 and Python 3.2.

- Issue #250, issue #165, pull request #251: `six.wraps` now ignores missing
Expand Down
3 changes: 2 additions & 1 deletion documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ Supported renames:
+------------------------------+-------------------------------------+---------------------------------------+
| ``dbm_ndbm`` | :mod:`py2:dbm` | :mod:`py3:dbm.ndbm` |
+------------------------------+-------------------------------------+---------------------------------------+
| ``_dummy_thread`` | :mod:`py2:dummy_thread` | :mod:`py3:_dummy_thread` |
| ``_dummy_thread`` | :mod:`py2:dummy_thread` | :mod:`py3:_dummy_thread` (< 3.9) |
| | | :mod:`py3:_thread` (3.9+) |
+------------------------------+-------------------------------------+---------------------------------------+
| ``email_mime_base`` | :mod:`py2:email.MIMEBase` | :mod:`py3:email.mime.base` |
+------------------------------+-------------------------------------+---------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion six.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class _MovedItems(_LazyModule):
MovedModule("copyreg", "copy_reg"),
MovedModule("dbm_gnu", "gdbm", "dbm.gnu"),
MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"),
MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread"),
MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread" if sys.version < (3, 9) else "_thread"),
MovedModule("http_cookiejar", "cookielib", "http.cookiejar"),
MovedModule("http_cookies", "Cookie", "http.cookies"),
MovedModule("html_entities", "htmlentitydefs", "html.entities"),
Expand Down

0 comments on commit 48ffe3c

Please sign in to comment.