summaryrefslogtreecommitdiff
path: root/Lib/robotparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/robotparser.py')
-rw-r--r--Lib/robotparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/robotparser.py b/Lib/robotparser.py
index 6b23188f19..13d8ac2528 100644
--- a/Lib/robotparser.py
+++ b/Lib/robotparser.py
@@ -214,7 +214,7 @@ class Entry:
# we have the catch-all agent
return True
agent = agent.lower()
- if useragent.find(agent) != -1:
+ if agent in useragent:
return True
return False