Skip to content

Commit b0af947

Browse files
authored
Split config lines on the first equal sign (#504)
1 parent d86d04c commit b0af947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgpt/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _read(self) -> None:
7575
with open(self.config_path, "r", encoding="utf-8") as file:
7676
for line in file:
7777
if line.strip() and not line.startswith("#"):
78-
key, value = line.strip().split("=")
78+
key, value = line.strip().split("=", 1)
7979
self[key] = value
8080

8181
def get(self, key: str) -> str: # type: ignore

0 commit comments

Comments
 (0)