mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-02 18:51:31 +08:00
Merge pull request #3490 from tyrossel/master
fix: passing maxsplit in re.split() as positional argument is deprecated
This commit is contained in:
commit
1afb2b7da9
@ -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