Sync to v3 for v2

This commit is contained in:
WQY\qiong
2023-03-03 20:16:48 +08:00
parent 5ad42429e5
commit 998e81aed3

View File

@@ -142,6 +142,12 @@ def set_option(name: str, cs: ChangeSet) -> ChangeSet:
# HYDRAULICS USE/SAVE filename
# MAP filename
#--------------------------------------------------------------
def _sync_to_v3() -> ChangeSet:
return ChangeSet()
def inp_in_option(section: list[str]) -> ChangeSet:
if len(section) <= 0:
return ChangeSet()
@@ -165,7 +171,10 @@ def inp_in_option(section: list[str]) -> ChangeSet:
if line.startswith(key):
value = line.removeprefix(key).strip()
cs |= { key : value }
return ChangeSet(cs)
result = ChangeSet(cs)
result.merge(_sync_to_v3())
return result
def inp_out_option(name: str) -> list[str]: