diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
| commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
| tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/core/serializers/pyyaml.py | |
| parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
More attacking E302 violators
Diffstat (limited to 'django/core/serializers/pyyaml.py')
| -rw-r--r-- | django/core/serializers/pyyaml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/serializers/pyyaml.py b/django/core/serializers/pyyaml.py index 478f14b53f..2d8bb187c1 100644 --- a/django/core/serializers/pyyaml.py +++ b/django/core/serializers/pyyaml.py @@ -29,6 +29,7 @@ class DjangoSafeDumper(SafeDumper): DjangoSafeDumper.add_representer(decimal.Decimal, DjangoSafeDumper.represent_decimal) + class Serializer(PythonSerializer): """ Convert a queryset to YAML. @@ -55,6 +56,7 @@ class Serializer(PythonSerializer): # Grand-parent super return super(PythonSerializer, self).getvalue() + def Deserializer(stream_or_string, **options): """ Deserialize a stream or string of YAML data. |
