simplified findbits.stringreverse()
This commit is contained in:
@@ -43,10 +43,7 @@ def binstring(number):
|
|||||||
|
|
||||||
# reverse string order
|
# reverse string order
|
||||||
def stringreverse(data):
|
def stringreverse(data):
|
||||||
out= ''
|
return data[::-1]
|
||||||
for x in range(len(data) -1,-1,-1):
|
|
||||||
out += data[x]
|
|
||||||
return out
|
|
||||||
|
|
||||||
# match forward, backward and inverted
|
# match forward, backward and inverted
|
||||||
def domatch(number,binary):
|
def domatch(number,binary):
|
||||||
|
|||||||
Reference in New Issue
Block a user