File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1919# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020# SOFTWARE.
2121
22- # $Id: locking.py,v 1.3 2003-02-06 05:43:47 richard Exp $
22+ # $Id: locking.py,v 1.4 2003-02-06 09:40:21 richard Exp $
2323
2424'''This module provides a generic interface to acquire and release
2525exclusive access to a file.
2626
2727It should work on Unix and Windows.
2828'''
2929
30- import warnings
31- warnings .filterwarnings ("ignore" ,
32- r'hex/oct constants > sys\.maxint .*' , FutureWarning ,
33- 'portalocker' , 0 )
30+ try :
31+ x = FutureWarning
32+ import warnings
33+ warnings .filterwarnings ("ignore" ,
34+ r'hex/oct constants > sys\.maxint .*' , FutureWarning ,
35+ 'portalocker' , 0 )
36+ del x
37+ except :
38+ pass
3439
3540import portalocker
3641
You can’t perform that action at this time.
0 commit comments