mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
This commit is contained in:
commit
c499f30286
63 changed files with 445 additions and 409 deletions
|
@ -2668,8 +2668,8 @@ Explicitly pass resources to child processes
|
|||
... do something using "lock" ...
|
||||
|
||||
if __name__ == '__main__':
|
||||
lock = Lock()
|
||||
for i in range(10):
|
||||
lock = Lock()
|
||||
for i in range(10):
|
||||
Process(target=f).start()
|
||||
|
||||
should be rewritten as ::
|
||||
|
@ -2680,8 +2680,8 @@ Explicitly pass resources to child processes
|
|||
... do something using "l" ...
|
||||
|
||||
if __name__ == '__main__':
|
||||
lock = Lock()
|
||||
for i in range(10):
|
||||
lock = Lock()
|
||||
for i in range(10):
|
||||
Process(target=f, args=(lock,)).start()
|
||||
|
||||
Beware of replacing :data:`sys.stdin` with a "file like object"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue