mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
lint!
This commit is contained in:
parent
0b1cdc382c
commit
cf0bce77a9
@ -90,10 +90,12 @@ def convert_100_200(data):
|
|||||||
data["version"] = (2, 0, 0)
|
data["version"] = (2, 0, 0)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
def convert_200_300(data):
|
def convert_200_300(data):
|
||||||
data["version"] = (3, 0, 0)
|
data["version"] = (3, 0, 0)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
def _convert_dict_keys(o: Any) -> Any:
|
def _convert_dict_keys(o: Any) -> Any:
|
||||||
if isinstance(o, dict):
|
if isinstance(o, dict):
|
||||||
return {strutils.always_str(k): _convert_dict_keys(v) for k, v in o.items()}
|
return {strutils.always_str(k): _convert_dict_keys(v) for k, v in o.items()}
|
||||||
|
Loading…
Reference in New Issue
Block a user