Django

Code

Changeset 644

Show
Ignore:
Timestamp:
09/17/05 18:06:16 (3 years ago)
Author:
adrian
Message:

Fixed mutable-argument bug in template.Context init. Thanks, Luke

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/template.py

    r634 r644  
    123123class Context: 
    124124    "A stack container for variable context" 
    125     def __init__(self, dict={}): 
     125    def __init__(self, dict=None): 
     126        dict = dict or {} 
    126127        self.dicts = [dict] 
    127128