Skip to content

add total_ordering to Time, Date, & Host#707

Merged
mambocab merged 2 commits into
masterfrom
PYTHON-714
Mar 2, 2017
Merged

add total_ordering to Time, Date, & Host#707
mambocab merged 2 commits into
masterfrom
PYTHON-714

Conversation

@mambocab
Copy link
Copy Markdown
Contributor

PYTHON-714

This works because the decorated types implement __eq__ and __lt__ already.

We don't have to do the same for metadata.Token because it implements __cmp__

@aboudreault
Copy link
Copy Markdown
Contributor

LGTM!

@mambocab
Copy link
Copy Markdown
Contributor Author

mambocab commented Mar 2, 2017

Apparently I was wrong about Python 3, so I fixed Token. I also did some cleanup of the new tests.

@mambocab mambocab merged commit c4a2d46 into master Mar 2, 2017
@mambocab mambocab deleted the PYTHON-714 branch March 2, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants