Fixed long line
This commit is contained in:
parent
1e23f6eb8c
commit
45505a82c4
@ -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)
|
||||
|
Reference in New Issue
Block a user