diff options
author | Maximilian Hils <git@maximilianhils.com> | 2012-12-05 04:03:39 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2012-12-05 04:03:39 +0100 |
commit | 043d05bcdeae482ca1d9b80375a1922e54896a6b (patch) | |
tree | 1ccaca07853c523c2e83f24afd8549c00f8add32 /netlib | |
parent | f8e10bd6ae1adba0897669bb8b90b9180150350a (diff) | |
download | mitmproxy-043d05bcdeae482ca1d9b80375a1922e54896a6b.tar.gz mitmproxy-043d05bcdeae482ca1d9b80375a1922e54896a6b.tar.bz2 mitmproxy-043d05bcdeae482ca1d9b80375a1922e54896a6b.zip |
add __iter__ for odict
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/odict.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/odict.py b/netlib/odict.py index 629fcade..bddb3877 100644 --- a/netlib/odict.py +++ b/netlib/odict.py @@ -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. |