summaryrefslogtreecommitdiff
path: root/cherrypy/lib
diff options
context:
space:
mode:
authorSuhaib Khan <suheb.work@gmail.com>2019-06-23 21:28:51 +0200
committerSuhaib Khan <suheb.work@gmail.com>2019-07-03 22:37:28 +0200
commit2543184468b03d8ba8bbc39da35a882bf76e4da4 (patch)
tree334dd84ebb10c8077c9ec87671a01a3f9568008f /cherrypy/lib
parent8b03c7f054eb110a7a8113c72925670f4a3d9835 (diff)
downloadcherrypy-git-2543184468b03d8ba8bbc39da35a882bf76e4da4.tar.gz
Do not remove session lock files
Signed-off-by: Suhaib Khan <suheb.work@gmail.com>
Diffstat (limited to 'cherrypy/lib')
-rw-r--r--cherrypy/lib/sessions.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/cherrypy/lib/sessions.py b/cherrypy/lib/sessions.py
index 322c955e..34f0f10b 100644
--- a/cherrypy/lib/sessions.py
+++ b/cherrypy/lib/sessions.py
@@ -566,8 +566,6 @@ class FileSession(Session):
def release_lock(self, path=None):
"""Release the lock on the currently-loaded session data."""
self.lock.close()
- with contextlib.suppress(FileNotFoundError):
- os.remove(self.lock._path)
self.locked = False
def clean_up(self):