File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1169,7 +1169,7 @@ class Counter:
11691169```
11701170
11711171### Context Manager
1172- * ** Enter() should lock the resources and return an object.**
1172+ * ** Enter() should lock the resources and (optionally) return an object.**
11731173* ** Exit() should release the resources.**
11741174* ** Any exception that happens inside the with block is passed to the exit() method.**
11751175* ** If it wishes to suppress the exception it must return a true value.**
Original file line number Diff line number Diff line change 11131113(< span class ="hljs-number "> 1</ span > , < span class ="hljs-number "> 2</ span > , < span class ="hljs-number "> 3</ span > )
11141114</ code > </ pre >
11151115< div > < h3 id ="contextmanager "> Context Manager</ h3 > < ul >
1116- < li > < strong > Enter() should lock the resources and return an object.</ strong > </ li >
1116+ < li > < strong > Enter() should lock the resources and (optionally) return an object.</ strong > </ li >
11171117< li > < strong > Exit() should release the resources.</ strong > </ li >
11181118< li > < strong > Any exception that happens inside the with block is passed to the exit() method.</ strong > </ li >
11191119< li > < strong > If it wishes to suppress the exception it must return a true value.</ strong > </ li >
You can’t perform that action at this time.
0 commit comments