Kaydet (Commit) ac4018ae authored tarafından Georg Brandl's avatar Georg Brandl

Use try-except-finally in contextlib.

üst add36e5f
...@@ -104,7 +104,6 @@ def nested(*managers): ...@@ -104,7 +104,6 @@ def nested(*managers):
exits = [] exits = []
vars = [] vars = []
exc = (None, None, None) exc = (None, None, None)
try:
try: try:
for mgr in managers: for mgr in managers:
exit = mgr.__exit__ exit = mgr.__exit__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment