diff options
Diffstat (limited to 'libmproxy/utils.py')
| -rw-r--r-- | libmproxy/utils.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/libmproxy/utils.py b/libmproxy/utils.py index e29910c5..22f98d12 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -138,6 +138,13 @@ def _caseless(s):      return s.lower() +def try_del(dict, key): +    try: +        del dict[key] +    except KeyError: +        pass + +  class MultiDict:      """          Simple wrapper around a dictionary to make holding multiple objects per | 
