From c3631ff82e2c1f44a1706e5b9cfb483d1bdb7238 Mon Sep 17 00:00:00 2001 From: "dn337t@gmail.com" Date: Wed, 20 Jun 2012 20:41:38 +0000 Subject: [PATCH] simplified findbits.main() loop --- tools/findbits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/findbits.py b/tools/findbits.py index 84f4670f..4e2f18dc 100755 --- a/tools/findbits.py +++ b/tools/findbits.py @@ -85,11 +85,11 @@ def main(): 16:'HEX', } - for base in 2,8,10,16: + for base, base_name in sorted(bases.iteritems()): try: number= int(sys.argv[1],base) print - print 'Trying', bases[base] + print 'Trying', base_name # do BINARY as specified to preserve leading zeros if base == 2: domatch(sys.argv[1],sys.argv[2]) -- 2.39.5