From 83daf1ee91864c2739bc46a0cebabd5731f61cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <990588+hannob@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:50:06 +0100 Subject: [PATCH] fix pylint warning (use-maxsplit-arg) --- snallygaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snallygaster b/snallygaster index 0524ce2..f6b4d2f 100755 --- a/snallygaster +++ b/snallygaster @@ -981,7 +981,7 @@ args = parser.parse_args() user_agent = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0'} if args.useragent: user_agent = {'user-agent': args.useragent} -urllib3_major = int(urllib3.__version__.split(".")[0]) +urllib3_major = int(urllib3.__version__.split(".", maxsplit=1)[0]) if urllib3_major >= 2: pool = urllib3.PoolManager(10, headers=user_agent, cert_reqs='CERT_NONE', # noqa: DUO132 retries=False, timeout=2, ssl_minimum_version=ssl.TLSVersion.SSLv3)