# HG changeset patch # User Ludovic Chabant # Date 1506564475 25200 # Node ID 84ce51430346f7db84950a7be7d9876915b1a166 # Parent 9d804fa186a0cef1d8880b47857fa43c97c8053f pep8: Fix indenting. diff -r 9d804fa186a0 -r 84ce51430346 piecrust/serving/util.py --- a/piecrust/serving/util.py Wed Sep 27 19:05:34 2017 -0700 +++ b/piecrust/serving/util.py Wed Sep 27 19:07:55 2017 -0700 @@ -119,20 +119,20 @@ response.set_etag(etag) response.last_modified = datetime.datetime.fromtimestamp(mtime) response.mimetype = mimetype_map.get( - ext.lstrip('.'), 'text/plain') + ext.lstrip('.'), 'text/plain') response.direct_passthrough = True return response mimetype_map = load_mimetype_map() content_type_map = { - 'html': 'text/html', - 'xml': 'text/xml', - 'txt': 'text/plain', - 'text': 'text/plain', - 'css': 'text/css', - 'xhtml': 'application/xhtml+xml', - 'atom': 'application/atom+xml', # or 'text/xml'? - 'rss': 'application/rss+xml', # or 'text/xml'? - 'json': 'application/json'} + 'html': 'text/html', + 'xml': 'text/xml', + 'txt': 'text/plain', + 'text': 'text/plain', + 'css': 'text/css', + 'xhtml': 'application/xhtml+xml', + 'atom': 'application/atom+xml', # or 'text/xml'? + 'rss': 'application/rss+xml', # or 'text/xml'? + 'json': 'application/json'}