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
+1 -1
View File
@@ -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__))