summaryrefslogtreecommitdiff
path: root/cherrypy/lib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-09-03 21:38:28 -0400
committerGitHub <noreply@github.com>2019-09-03 21:38:28 -0400
commit994803e4923e53b7079c79f4e9b502cc1b8d0aa6 (patch)
tree02de6c241ff962f468f4e0ad067135811f2a2298 /cherrypy/lib
parentb68087d0d62a8817e90a509a89afad0268052bc2 (diff)
parent1a6f0ecfe0cce4c628d35789fa72dc1ff14d66f4 (diff)
downloadcherrypy-git-18.2.0.tar.gz
Merge pull request #1787 from suheb/bugfix/1779v18.2.0
Do not remove session lock files
Diffstat (limited to 'cherrypy/lib')
-rw-r--r--cherrypy/lib/sessions.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/cherrypy/lib/sessions.py b/cherrypy/lib/sessions.py
index f7286708..5b3328f2 100644
--- a/cherrypy/lib/sessions.py
+++ b/cherrypy/lib/sessions.py
@@ -107,7 +107,6 @@ import time
import threading
import binascii
import pickle
-import contextlib
import zc.lockfile
@@ -566,8 +565,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):