diff options
author | Cédric Picard <cedric.picard@efrei.net> | 2014-11-30 00:21:42 +0100 |
---|---|---|
committer | Cédric Picard <cedric.picard@efrei.net> | 2014-11-30 00:21:42 +0100 |
commit | 2f89470398977aea449205c8a179d51ae70a4fd4 (patch) | |
tree | 9a0054133e9acbb6be458ca481a09ab484ff7cd6 /pasteme.py | |
parent | b2114a23f1d74ed02979cfcd83a37c4d2d8eacba (diff) | |
parent | 7c6c10f8e5bae9f112dcde5f8cc3bf7bf178db41 (diff) | |
download | pasteme-2f89470398977aea449205c8a179d51ae70a4fd4.tar.gz pasteme-2f89470398977aea449205c8a179d51ae70a4fd4.tar.bz2 pasteme-2f89470398977aea449205c8a179d51ae70a4fd4.zip |
Merge branch 'master' of git://git.devys.org/pasteme
Diffstat (limited to 'pasteme.py')
-rwxr-xr-x | pasteme.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |