~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to django/core/serializers/pyyaml.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
DjangoSafeDumper.add_representer(decimal.Decimal, DjangoSafeDumper.represent_decimal)
31
31
 
 
32
 
32
33
class Serializer(PythonSerializer):
33
34
    """
34
35
    Convert a queryset to YAML.
55
56
        # Grand-parent super
56
57
        return super(PythonSerializer, self).getvalue()
57
58
 
 
59
 
58
60
def Deserializer(stream_or_string, **options):
59
61
    """
60
62
    Deserialize a stream or string of YAML data.