From ee0ef5c5d7eaa3ac164c407e84aec84842c79e88 Mon Sep 17 00:00:00 2001 From: "dn337t@gmail.com" Date: Wed, 20 Jun 2012 20:33:53 +0000 Subject: [PATCH 1/1] simplified findbits.stringreverse() --- tools/findbits.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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): -- 2.39.5