Commit c232347
committed
python: open UtilConfig files as binary
Problem: The Python 3.11 tomllib implementation requires that toml
files be opened in binary mode, but the UtilConfig class opens files
in normal read mode, resulting in a TypError
File must be opened in binary mode, e.g. use `open('foo.toml', 'rb')`
Open all UtilConfig config files with mode 'rb'. This doesn't seem
to cause an issue with other config file types.
Fixes #51541 parent bb5ee6e commit c232347
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| |||
0 commit comments