From 5b610498609bba24cc0dcd90bd8074c151cdd5b2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Jul 2022 22:35:41 +0530 Subject: [PATCH] Remove spurious python-requests entry from common user agents --- setup/browser_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/browser_data.py b/setup/browser_data.py index 3904feb883..b1196203f1 100644 --- a/setup/browser_data.py +++ b/setup/browser_data.py @@ -29,7 +29,7 @@ def common_user_agents(): count, ua = line.partition(':')[::2] count = int(count.strip()) ua = ua.strip() - if len(ua) > 20: + if len(ua) > 25 and 'python' not in ua: ans[ua] = count return ans, list(sorted(ans, reverse=True, key=ans.__getitem__))