From 9e703042206866c0c2e3d1d4bcc8c65e0026cceb Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Fri, 7 Oct 2011 19:11:16 +0200 Subject: [PATCH] Oops --- pygal/util/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygal/util/__init__.py b/pygal/util/__init__.py index 2d5d7b5..7c04d96 100644 --- a/pygal/util/__init__.py +++ b/pygal/util/__init__.py @@ -4,8 +4,9 @@ import itertools import datetime -def node(parent, tag, params={}, **extras): +def node(parent, tag, params=None, **extras): """Make a etree node""" + params = params or {} for key, value in params.items(): if not isinstance(value, basestring): params[key] = str(value)