make load_properties() tolerate whitespace

This commit imports update to regexes in `load_properties()`,
d25c39f86568a147f9b7080c25711fb1f98f056a in rust-lang/regex

Does not result in any changes to tables.rs, but could if
published tables are updated in the future.
This commit is contained in:
kwantam
2015-04-16 16:11:04 -04:00
parent c7a8bcfdc5
commit e0d33a8661
+2 -2
View File
@@ -172,8 +172,8 @@ def format_table_content(f, content, indent):
def load_properties(f, interestingprops):
fetch(f)
props = {}
re1 = re.compile("^([0-9A-F]+) +; (\w+)")
re2 = re.compile("^([0-9A-F]+)\.\.([0-9A-F]+) +; (\w+)")
re1 = re.compile("^ *([0-9A-F]+) *; *(\w+)")
re2 = re.compile("^ *([0-9A-F]+)\.\.([0-9A-F]+) *; *(\w+)")
for line in fileinput.input(os.path.basename(f)):
prop = None