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:
1169
1169
```
1170
1170
1171
1171
### Context Manager
1172
- * ** Enter() should lock the resources and return an object.**
1172
+ * ** Enter() should lock the resources and (optionally) return an object.**
1173
1173
* ** Exit() should release the resources.**
1174
1174
* ** Any exception that happens inside the with block is passed to the exit() method.**
1175
1175
* ** If it wishes to suppress the exception it must return a true value.**
Original file line number Diff line number Diff line change 1113
1113
(< span class ="hljs-number "> 1</ span > , < span class ="hljs-number "> 2</ span > , < span class ="hljs-number "> 3</ span > )
1114
1114
</ code > </ pre >
1115
1115
< 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 >
1117
1117
< li > < strong > Exit() should release the resources.</ strong > </ li >
1118
1118
< li > < strong > Any exception that happens inside the with block is passed to the exit() method.</ strong > </ li >
1119
1119
< 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