Opened 7 years ago
Closed 6 years ago
#5829 enhancement closed duplicate (duplicate)
Replace DictMixin in twisted.web.http_headers with MutableMapping
Reported by: | Vladimir Perić | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Python-3.x |
Component: | core | Keywords: | |
Cc: | Branch: | ||
Author: |
Description
In Python 3, DictMixin is no longer provided and should be replaced with MutableMapping (which is available in Python 2.6+). This involves, at least, defining a len
method for the _DictHeaders class.
./twisted/web/http_headers.py:10:from UserDict import DictMixin
Note: See
TracTickets for help on using
tickets.
#6080 was a duplicate of this, but I didn't notice 'til I was just about done. Closing this as the duplicate instead.