Skip to content

Commit 1afb2b7

Browse files
authored
Merge pull request #3490 from tyrossel/master
fix: passing maxsplit in re.split() as positional argument is deprecated
2 parents 70d571b + 68abb98 commit 1afb2b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gunicorn/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def paste_global_conf(self):
248248
for e in raw_global_conf:
249249
s = util.bytes_to_str(e)
250250
try:
251-
k, v = re.split(r'(?<!\\)=', s, 1)
251+
k, v = re.split(r'(?<!\\)=', s, maxsplit=1)
252252
except ValueError:
253253
raise RuntimeError("environment setting %r invalid" % s)
254254
k = k.replace('\\=', '=')

0 commit comments

Comments
 (0)