@@ -1027,7 +1027,7 @@ def clean_up(self):
1027
1027
1028
1028
Do it only once an hour.
1029
1029
"""
1030
- hour = 60 * 60
1030
+ hour = 60 * 60
1031
1031
now = time .time ()
1032
1032
1033
1033
# XXX: hack - use OTK table to store last_clean time information
@@ -2176,7 +2176,7 @@ def selectTemplate(self, name, view):
2176
2176
else :
2177
2177
# try path/class.view
2178
2178
tplname = '%s/%s.%s' % (
2179
- view [:slash_loc ], name , view [slash_loc + 1 :])
2179
+ view [:slash_loc ], name , view [slash_loc + 1 :])
2180
2180
2181
2181
if loader .check (tplname ):
2182
2182
return tplname
@@ -2189,7 +2189,7 @@ def selectTemplate(self, name, view):
2189
2189
if slash_loc == - 1 :
2190
2190
generic = '_generic.%s' % view
2191
2191
else :
2192
- generic = '%s/_generic.%s' % (view [:slash_loc ], view [slash_loc + 1 :])
2192
+ generic = '%s/_generic.%s' % (view [:slash_loc ], view [slash_loc + 1 :])
2193
2193
if loader .check (generic ):
2194
2194
return generic
2195
2195
@@ -2223,7 +2223,7 @@ def renderContext(self):
2223
2223
timings = {'starttag' : '<!-- ' , 'endtag' : ' -->' }
2224
2224
else :
2225
2225
timings = {'starttag' : '<p>' , 'endtag' : '</p>' }
2226
- timings ['seconds' ] = time .time ()- self .start
2226
+ timings ['seconds' ] = time .time () - self .start
2227
2227
s = self ._ (
2228
2228
'%(starttag)sTime elapsed: %(seconds)fs%(endtag)s\n '
2229
2229
) % timings
@@ -2305,20 +2305,20 @@ def renderError(self, error, response_code=400, use_template=True):
2305
2305
2306
2306
# these are the actions that are available
2307
2307
actions = (
2308
- ('edit' , actions .EditItemAction ),
2309
- ('editcsv' , actions .EditCSVAction ),
2310
- ('new' , actions .NewItemAction ),
2311
- ('register' , actions .RegisterAction ),
2312
- ('confrego' , actions .ConfRegoAction ),
2313
- ('passrst' , actions .PassResetAction ),
2314
- ('login' , actions .LoginAction ),
2315
- ('logout' , actions .LogoutAction ),
2316
- ('search' , actions .SearchAction ),
2317
- ('restore' , actions .RestoreAction ),
2318
- ('retire' , actions .RetireAction ),
2319
- ('show' , actions .ShowAction ),
2320
- ('export_csv' , actions .ExportCSVAction ),
2321
- ('export_csv_id' , actions .ExportCSVWithIdAction ),
2308
+ ('edit' , actions .EditItemAction ), # noqa: E241
2309
+ ('editcsv' , actions .EditCSVAction ), # noqa: E241
2310
+ ('new' , actions .NewItemAction ), # noqa: E241
2311
+ ('register' , actions .RegisterAction ), # noqa: E241
2312
+ ('confrego' , actions .ConfRegoAction ), # noqa: E241
2313
+ ('passrst' , actions .PassResetAction ), # noqa: E241
2314
+ ('login' , actions .LoginAction ), # noqa: E241
2315
+ ('logout' , actions .LogoutAction ), # noqa: E241
2316
+ ('search' , actions .SearchAction ), # noqa: E241
2317
+ ('restore' , actions .RestoreAction ), # noqa: E241
2318
+ ('retire' , actions .RetireAction ), # noqa: E241
2319
+ ('show' , actions .ShowAction ), # noqa: E241
2320
+ ('export_csv' , actions .ExportCSVAction ), # noqa: E241
2321
+ ('export_csv_id' , actions .ExportCSVWithIdAction ), # noqa: E241
2322
2322
)
2323
2323
2324
2324
def handle_action (self ):
@@ -2913,7 +2913,7 @@ def header(self, headers=None, response=None):
2913
2913
if self .debug :
2914
2914
self .headers_sent = headers
2915
2915
2916
- def add_cookie (self , name , value , expire = 86400 * 365 , path = None ):
2916
+ def add_cookie (self , name , value , expire = 86400 * 365 , path = None ):
2917
2917
"""Set a cookie value to be sent in HTTP headers
2918
2918
2919
2919
Parameters:
0 commit comments