You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
twisted/internet/address.py:101: DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01. Please use `eq` and `order` instead.
twisted.internet.address.UNIXAddress seems like the only class in the code base that actually uses attrs this way to me, so narrowing the scope of this ticket, but if I missed one let me know.
ISTM too that it might be nice to include "deprecate ordering those objects" too -- not sure how sensical / intentional making UNIXAddress sortable is/was. It sorts by filename, which doesn't seem terribly useful.
cmp=False is equivalent to eq=False and ord=False. UNIXAddress seems to only implement __eq__ and __ne__ i.e. eq=True, so it's not orderable unless I miss something.
attrs 19.2.0 deprecated cmp and now issues deprecation warnings like this:
See also glyph/automat#117
Searchable metadata
The text was updated successfully, but these errors were encountered: