| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Seems like ubuntu's archives are down. |
Sorry, something went wrong.
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
| if key in self: | ||
| return self[key] | ||
| return default | ||
|
|
There was a problem hiding this comment.
Nit: Only one blank line so as to match the surrounding code.
Sorry, something went wrong.
| def __contains__(self, key): | ||
| return key in self.data | ||
|
|
||
| def get(self, key, default=None): |
There was a problem hiding this comment.
Add a comment that get() is overridden to avoid a False positive when _missing_ is defined.
Sorry, something went wrong.
|
Closing and reopening to trigger the CI bots. |
Sorry, something went wrong.
|
@bharel: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
Python 3.12 no longer calls `UserDict.__missing__`. See python/cpython#17910.
Required a fix for fetching aliases from `RepodataState` since Python 3.12 no longer calls `UserDict.__missing__`. See python/cpython#17910. --------- Co-authored-by: Travis Hathaway <travis.j.hathaway@gmail.com> Co-authored-by: Jannis Leidel <jannis@leidel.info> Co-authored-by: Ken Odegard <kodegard@anaconda.com>
| Back | FazBrowse Home | New Git URL |
Here's the patch according to the discussion at the Python-Dev mailing list.
UserDict.get() will match dict's behavior and not call __missing__.
https://bugs.python.org/issue39264
Automerge-Triggered-By: GH:rhettinger