]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
replaced string.find with str.find in findbits.search()
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:43:24 +0000 (20:43 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:43:24 +0000 (20:43 +0000)
tools/findbits.py

index 4e2f18dccea61dda05b32efb7bedb4eeb92d7161..d5516e598e156acad522eada2149d9a8847a6843 100755 (executable)
@@ -22,7 +22,6 @@
 
 import sys
 import os
 
 import sys
 import os
-import string
 
 # invert binary string
 def invert(data):
 
 # invert binary string
 def invert(data):
@@ -30,7 +29,7 @@ def invert(data):
 
 # do the actual search
 def search(target,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):])
        if location >= 0:
                print '*** Match at bit %d:' % location,
                print '%s<%s>%s' % (data[:location],target,data[location+len(target):])
Impressum, Datenschutz