aboutsummaryrefslogtreecommitdiffstats
path: root/pasteme.py
diff options
context:
space:
mode:
Diffstat (limited to 'pasteme.py')
-rwxr-xr-xpasteme.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pasteme.py b/pasteme.py
index fae3922..68a93f3 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -39,8 +39,8 @@ def route_paste_get(pid, pformat='colored'):
return bottle.template('bad_format')
path = pathbase / pid
try:
- with path.open() as fd:
- content = fd.read()
+ with path.open(mode='rb') as fd:
+ content = fd.read().decode('utf8')
except IOError:
# use this template for all file based exception
bottle.abort(404)