Replace str.find()!=1 with the more readable "in" operator.

This commit is contained in:
Raymond Hettinger 2004-05-04 09:21:43 +00:00
parent c5e378da41
commit bac788a3cd
7 changed files with 9 additions and 9 deletions

View file

@ -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