mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 19:21:29 +08:00
fix: passing maxsplit in re.split() as positional argument is deprecated
This commit is contained in:
parent
2c0f9593a4
commit
68abb98e4e
@ -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('\\=', '=')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user