Remove spurious python-requests entry from common user agents

This commit is contained in:
Kovid Goyal 2022-07-15 22:35:41 +05:30
parent 30e6bf5ff8
commit 5b61049860
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -29,7 +29,7 @@ def common_user_agents():
count, ua = line.partition(':')[::2] count, ua = line.partition(':')[::2]
count = int(count.strip()) count = int(count.strip())
ua = ua.strip() ua = ua.strip()
if len(ua) > 20: if len(ua) > 25 and 'python' not in ua:
ans[ua] = count ans[ua] = count
return ans, list(sorted(ans, reverse=True, key=ans.__getitem__)) return ans, list(sorted(ans, reverse=True, key=ans.__getitem__))