diff options
author | Aldo Cortesi <aldo@corte.si> | 2012-12-04 19:33:05 -0800 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2012-12-04 19:33:05 -0800 |
commit | 06d4ed9ba1642db41f5cda345e261d6bf2d004bf (patch) | |
tree | 1ccaca07853c523c2e83f24afd8549c00f8add32 /netlib/odict.py | |
parent | f8e10bd6ae1adba0897669bb8b90b9180150350a (diff) | |
parent | 043d05bcdeae482ca1d9b80375a1922e54896a6b (diff) | |
download | mitmproxy-06d4ed9ba1642db41f5cda345e261d6bf2d004bf.tar.gz mitmproxy-06d4ed9ba1642db41f5cda345e261d6bf2d004bf.tar.bz2 mitmproxy-06d4ed9ba1642db41f5cda345e261d6bf2d004bf.zip |
Merge pull request #4 from mhils/master
Add __iter__ to ODict
Diffstat (limited to 'netlib/odict.py')
-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. |