diff options
Diffstat (limited to 'Lib/robotparser.py')
-rw-r--r-- | Lib/robotparser.py | 2 |
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 |