simplified findbits.stringreverse()

This commit is contained in:
dn337t@gmail.com 2012-06-20 20:33:53 +00:00
parent df1e29bb40
commit ee0ef5c5d7

View file

@ -43,10 +43,7 @@ def binstring(number):
# reverse string order
def stringreverse(data):
out= ''
for x in range(len(data) -1,-1,-1):
out += data[x]
return out
return data[::-1]
# match forward, backward and inverted
def domatch(number,binary):