Merge lp://staging/~cjwatson/lazr.uri/hashable into lp://staging/lazr.uri
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 34 |
Proposed branch: | lp://staging/~cjwatson/lazr.uri/hashable |
Merge into: | lp://staging/lazr.uri |
Diff against target: |
73 lines (+34/-1) 3 files modified
NEWS.rst (+5/-0) src/lazr/uri/_uri.py (+4/-0) src/lazr/uri/tests/test_uri.py (+25/-1) |
To merge this branch: | bzr merge lp://staging/~cjwatson/lazr.uri/hashable |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Review via email: mp+386481@code.staging.launchpad.net |
Commit message
Add an explicit __hash__ method to lazr.uri.URI.
Description of the change
On Python 2, different URI objects that represent the same abstract URI previously had a different hash. On Python 3, URI objects were previously unhashable. This fixes both problems.
To post a comment you must log in.