Be a little more flexible with order strings
authorJeremy Kerr <jk@ozlabs.org>
Wed, 22 Nov 2006 02:32:38 +0000 (13:32 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:45 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 5ade7af..3b34aeb 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -178,6 +178,8 @@ def parse_config(bnf, regs, file):
                                                + "fields in %s") % id)
 
                                order_str = t[1].strip().lower()
+                               order_str = order_str.replace(' ', '-')
+
                                if order_str not in order_map.keys():
                                        raise ConfigurationError(file,
                                                "Invalid bit order %s in %s" % \