Skip to content

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

Conversation

serhiy-storchaka
Copy link
Member

in the plistlib module. Dict values in the result of functions
readPlist() and readPlistFromBytes() are now exact dicts.

in the plistlib module.  Dict values in the result of functions
readPlist() and readPlistFromBytes() are now exact dicts.
@mention-bot
Copy link

@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.

.. deprecated:: 3.4 Use :func:`load` instead.

.. versionchanged: 3.7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing double ::

.. deprecated:: 3.4 Use :func:`load` instead.

.. versionchanged: 3.7
Dict values in the result are now exact dicts.
Copy link
Member

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.

@@ -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``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Removed previously deprecated [...]"

Copy link
Member

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)

Copy link
Contributor

@ronaldoussoren ronaldoussoren left a 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.

@@ -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)
Copy link
Contributor

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.

@serhiy-storchaka serhiy-storchaka merged commit edef358 into python:master May 15, 2017
@serhiy-storchaka serhiy-storchaka deleted the bpo-29196-plistlib-remove-deprecated-classes branch May 15, 2017 10:21
jaraco pushed a commit that referenced this pull request Dec 2, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants