(path)
| 103 | |
| 104 | |
| 105 | def read_ascii_only(path): |
| 106 | with open(path) as fi: |
| 107 | data = fi.read() |
| 108 | for c in data: |
| 109 | if ord(c) > 127: |
| 110 | sys.exit("Error: unexpected non-ASCII character '%s' in: %s" % (c, path)) |
| 111 | return data |
| 112 | |
| 113 | |
| 114 | if_pat = re.compile( |