summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2021-01-15 11:22:14 -0800
committerTheron Luhn <theron@luhn.com>2021-01-15 11:22:14 -0800
commite6cf4bcc1b5252d3a07b5f321f030a4c144b50e6 (patch)
tree88ad8c0b3569fe9a1c9955eaeac5ba0d25987624 /src
parenta56833fff86058bc9b9ebee1ac6895798c928f2a (diff)
downloadpyramid-e6cf4bcc1b5252d3a07b5f321f030a4c144b50e6.tar.gz
pyramid-e6cf4bcc1b5252d3a07b5f321f030a4c144b50e6.tar.bz2
pyramid-e6cf4bcc1b5252d3a07b5f321f030a4c144b50e6.zip
Comment.
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/router.py b/src/pyramid/router.py
index fb3e5fca6..61660c41b 100644
--- a/src/pyramid/router.py
+++ b/src/pyramid/router.py
@@ -257,7 +257,7 @@ class Router:
def finish_request(self, request):
if request.finished_callbacks:
request._process_finished_callbacks()
- request.__dict__.pop('context', None)
+ request.__dict__.pop('context', None) # Break potential ref cycle
def __call__(self, environ, start_response):
"""