]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
simplified findbits.stringreverse()
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:33:53 +0000 (20:33 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:33:53 +0000 (20:33 +0000)
tools/findbits.py

index 442d2810380c8a2f9019150dbed41e70f4b5e83e..84f4670f6cdb858197557852bace5a46b3718841 100755 (executable)
@@ -43,10 +43,7 @@ def binstring(number):
 
 # reverse string order
 def stringreverse(data):
 
 # 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):
 
 # match forward, backward and inverted
 def domatch(number,binary):
Impressum, Datenschutz