Fixed long line
This commit is contained in:
parent
1e23f6eb8c
commit
45505a82c4
@ -57,9 +57,9 @@ def configSet(key: str, value, *args: str, file: str = "config"):
|
|||||||
string += f'["{arg}"]'
|
string += f'["{arg}"]'
|
||||||
if type(value) in [str]:
|
if type(value) in [str]:
|
||||||
value.replace("'", "\'").replace('"', '\"')
|
value.replace("'", "\'").replace('"', '\"')
|
||||||
if len(value) < 30:
|
#if len(value) < 30:
|
||||||
string += f'["{key}"] = "{value}"'
|
# string += f'["{key}"] = "{value}"'
|
||||||
else:
|
#else:
|
||||||
string += f'["{key}"] = """{value}"""'
|
string += f'["{key}"] = """{value}"""'
|
||||||
else:
|
else:
|
||||||
string += f'["{key}"] = {value}'
|
string += f'["{key}"] = {value}'
|
||||||
|
Reference in New Issue
Block a user