From edf1963ea5e61422f16e281e3f244c78d8ca0c48 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Thu, 14 Jul 2011 13:29:27 -0500 Subject: Improved readability a bit --- keystone/common/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 587a3be9..cf5fbf72 100755 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -276,14 +276,14 @@ class Serializer(object): Serializes a dictionary to a Content Type specified by a WSGI environment. """ - def __init__(self, environ, metadata=None): + def __init__(self, environ, metadata={}): """ Create a serializer based on the given WSGI environment. 'metadata' is an optional dict mapping MIME types to information needed to serialize a dictionary to that type. """ self.environ = environ - self.metadata = metadata or {} + self.metadata = metadata self._methods = { 'application/json': self._to_json, 'application/xml': self._to_xml} -- cgit