| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 import os.path | 3 import os.path |
| 4 import re | 4 import re |
| 5 import subprocess | 5 import subprocess |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 from in_file import InFile | 8 from in_file import InFile |
| 9 import in_generator | 9 import in_generator |
| 10 import license | 10 import license |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 'quirks_mode_or_ua_sheet_mode_values_keywords': '\n '.join(map(se
lf._case_value_keyword, self._value_keywords_with_mode('QuirksOrUASheet'))), | 168 'quirks_mode_or_ua_sheet_mode_values_keywords': '\n '.join(map(se
lf._case_value_keyword, self._value_keywords_with_mode('QuirksOrUASheet'))), |
| 169 } | 169 } |
| 170 # FIXME: If we could depend on Python 2.7, we would use subprocess.check
_output | 170 # FIXME: If we could depend on Python 2.7, we would use subprocess.check
_output |
| 171 gperf_args = ['gperf', '--key-positions=*', '-D', '-n', '-s', '2'] | 171 gperf_args = ['gperf', '--key-positions=*', '-D', '-n', '-s', '2'] |
| 172 gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subpr
ocess.PIPE) | 172 gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subpr
ocess.PIPE) |
| 173 return gperf.communicate(gperf_input)[0] | 173 return gperf.communicate(gperf_input)[0] |
| 174 | 174 |
| 175 | 175 |
| 176 if __name__ == "__main__": | 176 if __name__ == "__main__": |
| 177 in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv) | 177 in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv) |
| OLD | NEW |