PEP 475: simplify example
This commit is contained in:
parent
854b477894
commit
838e2c816f
|
@ -68,7 +68,7 @@ years to cover a whole module. Example of code retrying
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = file.read()
|
data = file.read(size)
|
||||||
break
|
break
|
||||||
except InterruptedError:
|
except InterruptedError:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue