mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Move try_del to utils
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user