[PATCH 1 of 3 file] [site] flake8

David Douard david.douard at logilab.fr
Tue Jun 12 12:00:49 CEST 2018


# HG changeset patch
# User David Douard <david.douard at logilab.fr>
# Date 1528724032 -7200
#      Mon Jun 11 15:33:52 2018 +0200
# Node ID 8e0f644f384ac8e2be15c2fd223bd726347c0505
# Parent  fbe90b4d72829bed52e7d455681e53c6331d3d7c
[site] flake8

diff --git a/cubicweb_file/site_cubicweb.py b/cubicweb_file/site_cubicweb.py
--- a/cubicweb_file/site_cubicweb.py
+++ b/cubicweb_file/site_cubicweb.py
@@ -1,20 +1,20 @@
 options = (
     ('image-max-size',
-     {'type' : 'string',
+     {'type': 'string',
       'default': None,
       'help': 'all images will be resized to this max size if set',
       'group': 'file',
       'level': 2,
       }),
     ('image-thumb-size',
-     {'type' : 'string',
+     {'type': 'string',
       'default': '75x75',
       'help': 'thumbnail size of your images',
       'group': 'file',
       'level': 2,
       }),
     ('thumbnail-cache-directory',
-     {'type':'string',
+     {'type': 'string',
       'default': None,
       'help': ('Cache directory for thumbnails (if unset, defaults '
                'to INSTANCEDIR/cache/file/thumbnails) '
@@ -23,12 +23,10 @@
       'group': 'file'
       }),
     ('compute-sha1hex',
-     {'type' : 'yn',
+     {'type': 'yn',
       'default': False,
       'help': 'compute sha1 hex digest of your files',
       'group': 'file',
       'level': 2,
       }),
     )
-
-


More information about the cubicweb-devel mailing list