From: dn337t@gmail.com Date: Wed, 20 Jun 2012 20:43:24 +0000 (+0000) Subject: replaced string.find with str.find in findbits.search() X-Git-Tag: v1.0.0~193 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f208c9e281295074e67da04f1527865fae7b2b74?ds=sidebyside replaced string.find with str.find in findbits.search() --- diff --git a/tools/findbits.py b/tools/findbits.py index 4e2f18dc..d5516e59 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):])