Commit c7ff8e1
authored
examples: update start_local_server to python3 (#385)
Python 2 EOL'd in January 2020, and generally is vanishing from Linux
distros. The code is simple enough that a 2to3 pass is sufficient to
update it to a working state on modern Python. A pass through the
“black” tool was also used just to maintain a standard style.1 parent 979b46f commit c7ff8e1
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
0 commit comments