diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2006-06-03 13:37:34 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2006-06-03 13:37:34 +0000 |
| commit | 9b86db9bf2407f408468566b3f48a8444cb66f83 (patch) | |
| tree | fc92295ebab2ea79ec9dd8fc17cc34d655d3cbb5 /django/template/__init__.py | |
| parent | 88d215f7021ff085cc1420236a721a286e548ce4 (diff) | |
Eliminated lots of mutable default arguments (since they are bugs
waiting to happen and are memory leaks too).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template/__init__.py')
| -rw-r--r-- | django/template/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py index 18dceff45c..b526863fbf 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -227,7 +227,8 @@ class Parser(object): for lib in builtins: self.add_library(lib) - def parse(self, parse_until=[]): + def parse(self, parse_until=None): + if parse_until is None: parse_until = [] nodelist = self.create_nodelist() while self.tokens: token = self.next_token() |
