Python - Context Managers
What is wrong with this code?
class MyContext:
def __enter__(self):
print('Start')
return self
def __exit__(self, exc_type, exc_val, exc_tb):
print('Cleanup')
with MyContext():
print('Inside')