Skip to content
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

Remove use of OrderedDict in various places #1483

Merged
merged 7 commits into from
Jan 30, 2022

Conversation

atombrella
Copy link
Contributor

No description provided.

kombu/connection.py Show resolved Hide resolved
Comment on lines 180 to 181
# Because we set an attribute on the OrderedDict, which
# is not possible with an ordinary dictionary
Copy link
Member

Choose a reason for hiding this comment

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

Please rephrase the comment as it isn't using proper English.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this better? I'd prefer not to trigger pipelines just for this.

        # Standard Python dictionaries do not support setting attributes
        # on the object, hence the use of OrderedDict

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pushed that change.

@atombrella atombrella changed the title Remove use of OrderedDict in Connection.info. Remove use of OrderedDict in various places Jan 26, 2022
@auvipy auvipy added this to the 5.2.x milestone Jan 30, 2022
@auvipy auvipy merged commit ac92e04 into celery:master Jan 30, 2022
@atombrella atombrella deleted the ordered_dict_python27 branch January 30, 2022 16:15
keithgg pushed a commit to open-craft/kombu that referenced this pull request Aug 11, 2022
* Remove use of OrderedDict in Connection.info.

* Remove remnant use of collections.OrderedDict

* Undo QoS._delivered move to Python standard dictionary.

This requires more work to convert, due to a hack in how the dictionary
is used.

* Undo LRUCache.data to dict conversion.

It's also problematic, and caused tests to fail.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert QoS._delivered comment chagne.

* Update comment

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants