Skip to content

Commit cc727c9

Browse files
[STYLE] Minor style fixes for USAGE documentation (- WIP PR #429 -)
Changes in file docs/USAGE.md: * style fixes
1 parent 6049b1c commit cc727c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ p.start()
8181
8282
```python3
8383
# imports
84-
from multiprocessing import Process
8584
import multicast
85+
from multiprocessing import Process
8686
8787
# Multicast group address and port
8888
MCAST_GRP = "224.0.0.1" # Replace with your multicast group address (use IPv4 dotted notation)
@@ -120,7 +120,7 @@ finally:
120120
if p:
121121
p.join() # if not already handled don't forget to join the process and other overhead
122122
# hint: if you use a loop and need to know the exit code
123-
didWork = (p is not None and int(p.exitcode) <= int(0)) # e.g. check for success
123+
didWork = (p is not None and p.exitcode <= 0) # e.g. check for success
124124
125125
```
126126

0 commit comments

Comments
 (0)