Fixed long line

This commit is contained in:
Profitroll 2022-11-21 00:29:18 +01:00
parent 1e23f6eb8c
commit 45505a82c4

View File

@ -57,10 +57,10 @@ def configSet(key: str, value, *args: str, file: str = "config"):
string += f'["{arg}"]'
if type(value) in [str]:
value.replace("'", "\'").replace('"', '\"')
if len(value) < 30:
string += f'["{key}"] = "{value}"'
else:
string += f'["{key}"] = """{value}"""'
#if len(value) < 30:
# string += f'["{key}"] = "{value}"'
#else:
string += f'["{key}"] = """{value}"""'
else:
string += f'["{key}"] = {value}'
exec(string)