diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-12-17 11:01:40 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-12-17 11:01:40 +1300 |
commit | 85e0e5da4c8dfa5fb8de749e3db0e38336f4a0a9 (patch) | |
tree | 215b45a5f566fa7ea80d373974d564ec73eed539 | |
parent | aa90fd359dc69481907bacd0406294a1f842497c (diff) | |
download | mitmproxy-85e0e5da4c8dfa5fb8de749e3db0e38336f4a0a9.tar.gz mitmproxy-85e0e5da4c8dfa5fb8de749e3db0e38336f4a0a9.tar.bz2 mitmproxy-85e0e5da4c8dfa5fb8de749e3db0e38336f4a0a9.zip |
Compat 0.19 -> 1.0
0.19 was never released, but let's include a conversion for it anyway, since it
was the master version.
-rw-r--r-- | mitmproxy/io_compat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/io_compat.py b/mitmproxy/io_compat.py index 20ee8824..9a87a545 100644 --- a/mitmproxy/io_compat.py +++ b/mitmproxy/io_compat.py @@ -74,6 +74,11 @@ def convert_018_019(data): return data +def convert_019_100(data): + data["version"] = (1, 0, 0) + return data + + def _convert_dict_keys(o: Any) -> Any: if isinstance(o, dict): return {strutils.native(k): _convert_dict_keys(v) for k, v in o.items()} @@ -121,6 +126,7 @@ converters = { (0, 16): convert_016_017, (0, 17): convert_017_018, (0, 18): convert_018_019, + (0, 19): convert_019_100, } |