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.
This commit is contained in:
parent
aa90fd359d
commit
85e0e5da4c
|
@ -74,6 +74,11 @@ def convert_018_019(data):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
def convert_019_100(data):
|
||||||
|
data["version"] = (1, 0, 0)
|
||||||
|
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.native(k): _convert_dict_keys(v) for k, v in o.items()}
|
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, 16): convert_016_017,
|
||||||
(0, 17): convert_017_018,
|
(0, 17): convert_017_018,
|
||||||
(0, 18): convert_018_019,
|
(0, 18): convert_018_019,
|
||||||
|
(0, 19): convert_019_100,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue