Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make a comment more accurate.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dafb4951a7ff191f1b41146ca46b4cc662212997 1 parent fcee0c1
Alex Gaynor authored September 10, 2011

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/template/base.py
4  django/template/base.py
@@ -1045,7 +1045,9 @@ def get_templatetags_modules():
1045 1045
     global templatetags_modules
1046 1046
     if not templatetags_modules:
1047 1047
         _templatetags_modules = []
1048  
-        # Populate list once per thread.
  1048
+        # Populate list once per process. Mutate the local list first, and then
  1049
+        # assign it to the global name to ensure there are no cases where two
  1050
+        # threads try to populate it simultaneously.
1049 1051
         for app_module in ['django'] + list(settings.INSTALLED_APPS):
1050 1052
             try:
1051 1053
                 templatetag_module = '%s.templatetags' % app_module

0 notes on commit dafb495

Please sign in to comment.
Something went wrong with that request. Please try again.