We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f2cee commit 1172944Copy full SHA for 1172944
1 file changed
context_manager.py
@@ -1,7 +1,8 @@
1
-def __enter__(self):
2
- print('Entering')
3
- return 'some data'
+
4
class Manager:
+ def __enter__(self):
+ print('Entering')
5
+ return 'some data'
6
7
def __exit__(self, exc_type, exc_val, exc_tb):
8
print('Existing')
0 commit comments