diff options
| author | Dolph Mathews <dolph.mathews@rackspace.com> | 2011-07-14 13:29:27 -0500 |
|---|---|---|
| committer | Dolph Mathews <dolph.mathews@rackspace.com> | 2011-07-14 13:29:27 -0500 |
| commit | edf1963ea5e61422f16e281e3f244c78d8ca0c48 (patch) | |
| tree | 0776206973b129d7144e1048ab2d2152af6ec08c | |
| parent | b9e24f93a6d9d3814a7cced6ddac47a0b49d0ccb (diff) | |
Improved readability a bit
| -rwxr-xr-x | keystone/common/wsgi.py | 4 |
1 files 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} |
