Skip to content

Commit

Permalink
fix pylint warning (use-maxsplit-arg)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Nov 28, 2023
1 parent cd14402 commit 83daf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snallygaster
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83daf1e

Please sign in to comment.