From: dn337t@gmail.com Date: Wed, 20 Jun 2012 20:33:53 +0000 (+0000) Subject: simplified findbits.stringreverse() X-Git-Tag: v1.0.0~195 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/ee0ef5c5d7eaa3ac164c407e84aec84842c79e88?ds=inline simplified findbits.stringreverse() --- diff --git a/tools/findbits.py b/tools/findbits.py index 442d2810..84f4670f 100755 --- a/tools/findbits.py +++ b/tools/findbits.py @@ -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):