-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict #488
Conversation
in the plistlib module. Dict values in the result of functions readPlist() and readPlistFromBytes() are now exact dicts.
@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ronaldoussoren, @tiran, @ned-deily, @birkenfeld and @jackjansen to be potential reviewers. |
Doc/library/plistlib.rst
Outdated
.. deprecated:: 3.4 Use :func:`load` instead. | ||
|
||
.. versionchanged: 3.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing double ::
Doc/library/plistlib.rst
Outdated
.. deprecated:: 3.4 Use :func:`load` instead. | ||
|
||
.. versionchanged: 3.7 | ||
Dict values in the result are now exact dicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if we could mention the previous behavior (dicts with a __getattr__
method) too.
Doc/whatsnew/3.7.rst
Outdated
@@ -187,6 +187,11 @@ API and Feature Removals | |||
Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive` | |||
function instead. | |||
|
|||
* Removed old-deprecated classes ``Plist``, ``Dict`` and ``_InternalDict`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Removed previously deprecated [...]"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty minor, but perhaps we can add Python versions too:
- ``Dict`` (deprecated in Python 3.0)
- ``Dict`` (Python 3.0)
…b-remove-deprecated-classes
….com:serhiy-storchaka/cpython into bpo-29196-plistlib-remove-deprecated-classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, other than a trivial issue in a test case.
Lib/test/test_plistlib.py
Outdated
@@ -173,7 +173,7 @@ def test_bytes(self): | |||
pl = self._create() | |||
data = plistlib.dumps(pl) | |||
pl2 = plistlib.loads(data) | |||
self.assertNotIsInstance(pl, plistlib._InternalDict) | |||
self.assertEqual(pl, pl2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is basically the same assertion as in the next line.
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.4.1 to 1.4.3. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-python@1.4.1...1.4.3) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
in the plistlib module. Dict values in the result of functions
readPlist() and readPlistFromBytes() are now exact dicts.