Skip to content

Commit

Permalink
Remove reliance on contextlib2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 2, 2018
1 parent d8213f2 commit 2fc78dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cherrypy/lib/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@
import threading
import binascii
import pickle

import contextlib2
import contextlib

import zc.lockfile

Expand Down Expand Up @@ -567,7 +566,7 @@ def acquire_lock(self, path=None):
def release_lock(self, path=None):
"""Release the lock on the currently-loaded session data."""
self.lock.close()
with contextlib2.suppress(FileNotFoundError):
with contextlib.suppress(FileNotFoundError):
os.remove(self.lock._path)
self.locked = False

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
'portend>=2.1.1',
'more_itertools',
'zc.lockfile',
'contextlib2',
],
extras_require={
'docs': [
Expand Down

0 comments on commit 2fc78dc

Please sign in to comment.