summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-10-13 13:58:57 +0100
committerErik Johnston <erik@matrix.org>2017-10-13 13:58:57 +0100
commitb92a8e6e4aa2283daaa4e6050f1dbd503ddc9434 (patch)
treed39df37521fdf0663409577b10bd33db4ed1d53e /synapse/rest/media/v1
parentMove type into key (diff)
downloadsynapse-b92a8e6e4aa2283daaa4e6050f1dbd503ddc9434.tar.xz
PEP8
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/media_repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index dee834389f..d2ac0175d7 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -468,7 +468,7 @@ class MediaRepository(object):
         thumbnails = {}
         for r_width, r_height, r_method, r_type in requirements:
             if r_method == "crop":
-                thumbnails.setdefault((r_width, r_height,r_type), r_method)
+                thumbnails.setdefault((r_width, r_height, r_type), r_method)
             elif r_method == "scale":
                 t_width, t_height = thumbnailer.aspect(r_width, r_height)
                 t_width = min(m_width, t_width)