mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
add __iter__ for odict
This commit is contained in:
parent
f8e10bd6ae
commit
043d05bcde
@ -22,6 +22,9 @@ class ODict:
|
||||
def __eq__(self, other):
|
||||
return self.lst == other.lst
|
||||
|
||||
def __iter__(self):
|
||||
return self.lst.__iter__()
|
||||
|
||||
def __getitem__(self, k):
|
||||
"""
|
||||
Returns a list of values matching key.
|
||||
|
Loading…
Reference in New Issue
Block a user