Commit 8ad3455
tools: revise install.py for minor improvements
* Use an with block for reading the config file.
Refs: https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files
* Use explicit blank return to make it clear that the return value is
not actually used and that it is being used for flow control only..
PR-URL: #36626
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>1 parent 34d1d79 commit 8ad3455Copy full SHA for 8ad3455
File tree
Expand file treeCollapse file tree
1 file changed
+14
-6
lines changedOpen diff view settings
Filter options
- tools
Expand file treeCollapse file tree
1 file changed
+14
-6
lines changedOpen diff view settings
Collapse file
+14-6Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | | - |
| 22 | + |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
226 | | - |
227 | | - |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
228 | 232 | |
229 | | - |
230 | | - |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
231 | 239 | |
232 | 240 | |
233 | 241 | |
|
0 commit comments