mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
#18705: merge with 3.3.
This commit is contained in:
commit
9a3777e525
26 changed files with 49 additions and 49 deletions
|
@ -142,7 +142,7 @@ class closing(object):
|
|||
|
||||
@contextmanager
|
||||
def ignored(*exceptions):
|
||||
"""Context manager to ignore specifed exceptions
|
||||
"""Context manager to ignore specified exceptions
|
||||
|
||||
with ignored(OSError):
|
||||
os.remove(somefile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue