Improve variable names
[bitfield] / bitfield
index 965d8cac2c2c5eee17bae01748c7b173f71e0347..4962e57f2bfd7ed8aeb54b1e3e911a738398dab6 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -255,13 +255,13 @@ def main():
                usage(sys.argv[0])
                return 1
 
-       a = args.pop(0)
-       if not regs.has_key(a):
-               print "No such register '%s'. Valid regs are:" % a
+       reg_id = args.pop(0)
+       if not regs.has_key(reg_id):
+               print "No such register '%s'. Valid regs are:" % reg_id
                list_regs(regs)
                return 1
 
-       r = regs[a]
+       r = regs[reg_id]
        print "decoding as %s" % r.name
 
        if args: