biopython/biopython — pull request #65 by semenko (2012-09-08 00:31:05+00:00)
Title: Change instances of string.find() to use the "in" operator instead

I got a bit confused debugging recently, where code used a mixture of ```.find()``` with
different comparisons (== -1, <0, >-1, >0, == 0, etc.) to check for substrings.

This changes simple substring testing to be more Pythonic and readable, e.g.:
* ```haystack.find(needle) >= -1``` --> ```needle in haystack```
* ```haystack.find(needle) == -1``` --> ```needle not in haystack```
* ```haystack.find(needle) == 0``` --> ```haystack.startswith(needle)```

[As a bonus, this makes things ever-so-slightly faster: http://goo.gl/vgtCa ]

Signed-off-by: Nick Semenkovich \