From 0fd6c4a9b20f1a6197eb51ccd00c7d5881e11626 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 8 Jan 2009 10:40:18 -0500 Subject: [PATCH] fpdb_parse_logic: use 'in' instead of 'find' --- pyfpdb/fpdb_parse_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_parse_logic.py b/pyfpdb/fpdb_parse_logic.py index d30a7b3f..f13b1d6d 100644 --- a/pyfpdb/fpdb_parse_logic.py +++ b/pyfpdb/fpdb_parse_logic.py @@ -41,7 +41,7 @@ def mainParser(backend, db, cursor, site, category, hand): isTourney=fpdb_simple.isTourney(hand[0]) smallBlindLine=0 for i in range(len(hand)): - if hand[i].find("posts small blind")!=-1 or hand[i].find("posts the small blind")!=-1: + if 'posts small blind' in hand[i] or 'posts the small blind' in hand[i]: if hand[i][-2:] == "$0": continue smallBlindLine=i