Skip to content

Commit

Permalink
fixed default argument being a mutable type, thanks @piquadrat
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Jun 8, 2012
1 parent 1716e4f commit d025240
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sekizai/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def _extend_nodelist(extend_node):
found += _scan_namespaces(parent_template.nodelist, extend_node, blocks.keys())
return found

def _scan_namespaces(nodelist, current_block=None, ignore_blocks=[]):
def _scan_namespaces(nodelist, current_block=None, ignore_blocks=None):
if ignore_blocks is None:
ignore_blocks = []
found = []

for node in nodelist:
Expand Down Expand Up @@ -97,3 +99,4 @@ def validate_template(template, namespaces):
if namespace not in found:
return False
return True

0 comments on commit d025240

Please sign in to comment.