Bring .gyb files in line with rest of code base in terms of PEP8 compliance.

This commit is contained in:
practicalswift
2016-01-24 12:17:17 +01:00
parent e06e27ab34
commit 0cb9573398
2 changed files with 6 additions and 8 deletions

View File

@@ -19,8 +19,7 @@
from GYBUnicodeDataUtils import GraphemeClusterBreakPropertyTable, get_extended_grapheme_cluster_rules_matrix
grapheme_cluster_break_property_table = \
GraphemeClusterBreakPropertyTable(unicodeGraphemeBreakPropertyFile)
break_table = GraphemeClusterBreakPropertyTable(unicodeGraphemeBreakPropertyFile)
}%
@@ -30,8 +29,7 @@ swift::unicode::GraphemeClusterBreakProperty
swift::unicode::getGraphemeClusterBreakProperty(uint32_t C) {
// FIXME: replace linear search with a trie lookup.
% for start_code_point,end_code_point,value in \
% grapheme_cluster_break_property_table.property_value_ranges:
% for start_code_point, end_code_point, value in break_table.property_value_ranges:
% if start_code_point == 0:
if (C <= ${end_code_point})
% else:
@@ -44,7 +42,7 @@ swift::unicode::getGraphemeClusterBreakProperty(uint32_t C) {
}
const uint16_t swift::unicode::ExtendedGraphemeClusterNoBoundaryRulesMatrix[] = {
% for row in get_extended_grapheme_cluster_rules_matrix(grapheme_cluster_break_property_table):
% for row in get_extended_grapheme_cluster_rules_matrix(break_table):
${row},
% end
};