Skip to content

Commit e6d4692

Browse files
committed
Fix formatting of README
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent d090fc4 commit e6d4692

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a simple Python wrapper for [uhubctl](https://github.com/mvp/uhubctl)
66

77
## Discover all usable USB hubs
88

9-
'''python
9+
```python
1010
import uhubctl
1111

1212
hubs = uhubctl.discover_hubs()
@@ -16,20 +16,20 @@ for hub in hubs:
1616

1717
for port in hub.ports:
1818
print(f" Found port: {port}")
19-
'''
19+
```
2020

2121
## Manually specify hub and port
2222

23-
'''python
23+
```python
2424
from uhubctl import Hub, Port
2525

2626
hub = Hub("1-1")
2727
hub.add_port(1)
28-
'''
28+
```
2929

3030
## Control ports
3131

32-
'''python
32+
```python
3333
from uhubctl import Hub, Port
3434

3535
hub = Hub("1-1")
@@ -43,4 +43,4 @@ port.status = True
4343

4444
print("Get port 1-1.1 status")
4545
print(port.status)
46-
'''
46+
```

0 commit comments

Comments
 (0)