comparison downloads/management/commands/dlwgetcat.py @ 874:b59c154d0163

For some reason, don't need to encode output anymore.
author Brian Neal <bgneal@gmail.com>
date Thu, 25 Dec 2014 17:20:28 -0600
parents a75554eb6bae
children bd59a599b9a3
comparison
equal deleted inserted replaced
867:21946dc3662d 874:b59c154d0163
46 'downloads': downloads, 46 'downloads': downloads,
47 'domain': Site.objects.get_current().domain, 47 'domain': Site.objects.get_current().domain,
48 'MEDIA_URL': settings.MEDIA_URL, 48 'MEDIA_URL': settings.MEDIA_URL,
49 }) 49 })
50 50
51 # encode it ourselves since it can fail if you try to redirect output to 51 self.stdout.write(output)
52 # a file and any of the content is not ASCII...
53 self.stdout.write(output.encode('utf-8'))