From f208c9e281295074e67da04f1527865fae7b2b74 Mon Sep 17 00:00:00 2001 From: "dn337t@gmail.com" Date: Wed, 20 Jun 2012 20:43:24 +0000 Subject: [PATCH] replaced string.find with str.find in findbits.search() --- tools/findbits.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/findbits.py b/tools/findbits.py index 4e2f18dcc..d5516e598 100755 --- a/tools/findbits.py +++ b/tools/findbits.py @@ -22,7 +22,6 @@ import sys import os -import string # invert binary string def invert(data): @@ -30,7 +29,7 @@ def invert(data): # do the actual search def search(target,data): - location= string.find(data,target) + location = data.find(target) if location >= 0: print '*** Match at bit %d:' % location, print '%s<%s>%s' % (data[:location],target,data[location+len(target):])