Commit edb85b6
committed
Open profile scripts in binary mode
Pass the raw bytes to exec() so the compiler applies the source file's
encoding declaration, instead of detecting it with tokenize.open().1 parent 4c0bd4f commit edb85b6
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- Lib/tkinter
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2739 | 2739 | | |
2740 | 2740 | | |
2741 | 2741 | | |
2742 | | - | |
2743 | 2742 | | |
2744 | 2743 | | |
2745 | 2744 | | |
| |||
2751 | 2750 | | |
2752 | 2751 | | |
2753 | 2752 | | |
2754 | | - | |
| 2753 | + | |
2755 | 2754 | | |
2756 | 2755 | | |
2757 | 2756 | | |
2758 | 2757 | | |
2759 | | - | |
| 2758 | + | |
2760 | 2759 | | |
2761 | 2760 | | |
2762 | 2761 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
0 commit comments