(prefix)
| 55 | """) |
| 56 | |
| 57 | def gencodecs(prefix): |
| 58 | for loc, encodings in codecs.items(): |
| 59 | for enc in encodings: |
| 60 | code = TEMPLATE.substitute(ENCODING=enc.upper(), |
| 61 | encoding=enc.lower(), |
| 62 | owner=loc) |
| 63 | codecpath = os.path.join(prefix, enc + '.py') |
| 64 | with open(codecpath, 'w') as f: |
| 65 | f.write(code) |
| 66 | |
| 67 | if __name__ == '__main__': |
| 68 | import sys |
no test coverage detected
searching dependent graphs…