replaced string.find with str.find in findbits.search()

This commit is contained in:
dn337t@gmail.com 2012-06-20 20:43:24 +00:00
parent c3631ff82e
commit f208c9e281

View file

@ -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):])