Skip to content

bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict#488

Merged
serhiy-storchaka merged 7 commits into
python:masterfrom
serhiy-storchaka:bpo-29196-plistlib-remove-deprecated-classes
May 15, 2017
Merged

bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict#488
serhiy-storchaka merged 7 commits into
python:masterfrom
serhiy-storchaka:bpo-29196-plistlib-remove-deprecated-classes

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
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
Copy Markdown

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

Comment thread Doc/library/plistlib.rst Outdated

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

.. versionchanged: 3.7
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

missing double ::

Comment thread Doc/library/plistlib.rst Outdated
.. deprecated:: 3.4 Use :func:`load` instead.

.. versionchanged: 3.7
Dict values in the result are now exact dicts.
Copy link
Copy Markdown
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.

Comment thread Doc/whatsnew/3.7.rst Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread Lib/test/test_plistlib.py Outdated
data = plistlib.dumps(pl)
pl2 = plistlib.loads(data)
self.assertNotIsInstance(pl, plistlib._InternalDict)
self.assertEqual(pl, pl2)
Copy link
Copy Markdown
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] <support@github.com>

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