# HG changeset patch # User Brian Neal # Date 1419549628 21600 # Node ID b59c154d01634fa64b3bed22fd26b041a697bec9 # Parent 21946dc3662d0fa4888393515f2e8fa752bb802f For some reason, don't need to encode output anymore. diff -r 21946dc3662d -r b59c154d0163 downloads/management/commands/dlcatreport.py --- a/downloads/management/commands/dlcatreport.py Mon Dec 15 18:48:45 2014 -0600 +++ b/downloads/management/commands/dlcatreport.py Thu Dec 25 17:20:28 2014 -0600 @@ -45,14 +45,12 @@ 'downloads': downloads, }) - # encode it ourselves since it can fail if you try to redirect output to - # a file and any of the content is not ASCII... - self.stdout.write(report.encode('utf-8')) + self.stdout.write(report) def print_titles(self, dls): """Print out the download titles""" for dl in dls: - self.stdout.write(dl.title.encode('utf-8')) + self.stdout.write(dl.title) diff -r 21946dc3662d -r b59c154d0163 downloads/management/commands/dlwgetcat.py --- a/downloads/management/commands/dlwgetcat.py Mon Dec 15 18:48:45 2014 -0600 +++ b/downloads/management/commands/dlwgetcat.py Thu Dec 25 17:20:28 2014 -0600 @@ -48,6 +48,4 @@ 'MEDIA_URL': settings.MEDIA_URL, }) - # encode it ourselves since it can fail if you try to redirect output to - # a file and any of the content is not ASCII... - self.stdout.write(output.encode('utf-8')) + self.stdout.write(output)