mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-28 19:31:19 +08:00
replaced string.find with str.find in findbits.search()
This commit is contained in:
parent
c3631ff82e
commit
f208c9e281
1 changed files with 1 additions and 2 deletions
|
@ -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):])
|
||||
|
|
Loading…
Reference in a new issue