| skipped 2147 lines |
2148 | 2148 | | |
2149 | 2149 | | if __name__ == '__main__': |
2150 | 2150 | | if sys.version_info[0] < 3 or sys.version_info[1] < 5: |
2151 | | - | print('ERROR: GYB requires Python 3.7 or greater.') |
| 2151 | + | print('ERROR: GYB requires Python 3.5 or greater.') |
2152 | 2152 | | sys.exit(3) |
| 2153 | + | elif sys.version_info[1] >= 7: |
| 2154 | + | sys.stdout.reconfigure(encoding='utf-8', errors='namereplace') |
| 2155 | + | sys.stdin.reconfigure(encoding='utf-8', errors='namereplace') |
2153 | 2156 | | try: |
2154 | 2157 | | main(sys.argv[1:]) |
2155 | 2158 | | except MemoryError: |
| skipped 19 lines |