Fix pyflakes and pep8 warnings

This commit is contained in:
Mark Haines 2014-12-02 19:55:18 +00:00
parent 5da65085d1
commit 2f804a7072
3 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,8 @@ class MediaRepositoryResource(Resource):
Clients can get thumbnails by supplying a desired width and height:: Clients can get thumbnails by supplying a desired width and height::
=> GET /_matrix/media/v1/thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1 => GET /_matrix/media/v1
/thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1
<= HTTP/1.1 200 OK <= HTTP/1.1 200 OK
Content-Type: image/jpeg or image/png Content-Type: image/jpeg or image/png

View File

@ -29,6 +29,7 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class UploadResource(resource.Resource): class UploadResource(resource.Resource):
def __init__(self, hs, filepaths): def __init__(self, hs, filepaths):

View File

@ -78,7 +78,7 @@ class MediaRepositoryStore(SQLBaseStore):
def store_cached_remote_media(self, origin, media_id, media_type, def store_cached_remote_media(self, origin, media_id, media_type,
media_length, time_now_ms, upload_name, media_length, time_now_ms, upload_name,
filesytem_id): filesystem_id):
return self._simple_insert( return self._simple_insert(
"remote_media_cache", "remote_media_cache",
{ {
@ -103,7 +103,6 @@ class MediaRepositoryStore(SQLBaseStore):
) )
) )
def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width, def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width,
thumbnail_height, thumbnail_type, thumbnail_height, thumbnail_type,
thumbnail_length, filesystem_id): thumbnail_length, filesystem_id):