mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-11 09:00:57 +03:00
Remove contextlib
This commit is contained in:
parent
59d21041ba
commit
e279614524
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,6 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import copy
|
||||
import contextlib
|
||||
import inspect
|
||||
import os
|
||||
import re
|
||||
|
@ -2695,8 +2694,10 @@ cdef class Resource(Provider):
|
|||
return
|
||||
|
||||
if self.__shutdowner:
|
||||
with contextlib.suppress(StopIteration):
|
||||
try:
|
||||
self.__shutdowner(self.__resource)
|
||||
except StopIteration:
|
||||
pass
|
||||
|
||||
self.__resource = None
|
||||
self.__initialized = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user