id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 8607,yaml serialization to file fails,antony_hatchkins,nobody,"When serializing anything to yaml with stream=open('file','w') it fails with the following error: >>> XMLSerializer = serializers.get_serializer('yaml') >>> serializer = XMLSerializer() >>> serializer.serialize(Partner.objects.all(), stream=open('partners.yaml', 'w')) Traceback (most recent call last): File ""./bin/serialization/serialize_partners.py"", line 16, in serializer.serialize(Partner.objects.all(), stream=out) File ""/var/django/phones-lev/django/core/serializers/base.py"", line 56, in serialize return self.getvalue() File ""./django/core/serializers/pyyaml.py"", line 43, in getvalue return self.stream.getvalue() AttributeError: 'file' object has no attribute 'getvalue' ",,closed,Core (Serialization),dev,,fixed,yaml,,Unreviewed,1,0,0,0,0,0