Merge pull request #3490 from tyrossel/master

fix: passing maxsplit in re.split() as positional argument is deprecated
This commit is contained in:
Benoit Chesneau 2026-02-07 14:45:05 +01:00 committed by GitHub
commit 1afb2b7da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,7 +248,7 @@ class Config:
for e in raw_global_conf:
s = util.bytes_to_str(e)
try:
k, v = re.split(r'(?<!\\)=', s, 1)
k, v = re.split(r'(?<!\\)=', s, maxsplit=1)
except ValueError:
raise RuntimeError("environment setting %r invalid" % s)
k = k.replace('\\=', '=')