aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-02-24 17:54:34 -0800
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-02-24 17:54:34 -0800
commiteb564614cb0624fcddcbfae8314ec624d9ed0741 (patch)
tree12ed4517524f2e9a78e223764402f54a150ec1d9
parent410ab9cacdf840bd1fbd6a9747cfb7d55c2e3bf0 (diff)
downloadmediagoblin-eb564614cb0624fcddcbfae8314ec624d9ed0741.tar.lz
mediagoblin-eb564614cb0624fcddcbfae8314ec624d9ed0741.tar.xz
mediagoblin-eb564614cb0624fcddcbfae8314ec624d9ed0741.zip
Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong)
-rw-r--r--mediagoblin/templates/mediagoblin/media_displays/ascii.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/media_displays/ascii.html b/mediagoblin/templates/mediagoblin/media_displays/ascii.html
index 56039980..7cef5e80 100644
--- a/mediagoblin/templates/mediagoblin/media_displays/ascii.html
+++ b/mediagoblin/templates/mediagoblin/media_displays/ascii.html
@@ -24,7 +24,7 @@
<pre>
{%- autoescape False -%}
{{- request.app.public_store.get_file(
- media.media_files['unicode']).read()|string -}}
+ media.media_files['unicode']).read().decode('utf-8')|string -}}
{%- endautoescape -%}
</pre>
</div>