Skip to content

Commit

Permalink
Restore Keyring on OS_X module along with a DeprecationWarning. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 26, 2021
1 parent fb288d9 commit e24ceaf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v22.2.0
-------

* #487: Restored ``Keyring`` in ``OS_X`` module with
deprecation warning for users specifying the backend by
name.

v22.1.0
-------

Expand Down
13 changes: 11 additions & 2 deletions keyring/backends/OS_X.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
"""
For improved compatibility when older keyring metadata points
to this module, supply it. See jaraco/keyring#486.
Backward-compatibility shim for users referencing the module
by name. Ref #487.
"""

import warnings

from .macOS import Keyring

__all__ = ['Keyring']


warnings.warn("OS_X module is deprecated.", DeprecationWarning)

0 comments on commit e24ceaf

Please sign in to comment.