25
25
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
26
27
27
from __future__ import unicode_literals
28
- import io
29
28
import datetime
30
29
import glob
30
+ import io
31
31
import json
32
32
import mimetypes
33
33
import os
@@ -246,7 +246,7 @@ def gen_tasks(self):
246
246
'targets' : [post .translated_base_path (lang )],
247
247
'file_dep' : post .fragment_deps (lang ),
248
248
'actions' : [(post .compile , [lang ])],
249
- 'uptodate' : [utils .config_changed (self .kw , 'nikola.plugins.task.galleries:post' )] + post .fragment_deps_uptodate (lang )
249
+ 'uptodate' : [utils .config_changed (self .kw . copy () , 'nikola.plugins.task.galleries:post' )] + post .fragment_deps_uptodate (lang )
250
250
}
251
251
context ['post' ] = post
252
252
else :
@@ -275,7 +275,7 @@ def gen_tasks(self):
275
275
file_dep ))],
276
276
'clean' : True ,
277
277
'uptodate' : [utils .config_changed ({
278
- 1 : self .kw ,
278
+ 1 : self .kw . copy () ,
279
279
2 : self .site .config ["COMMENTS_IN_GALLERIES" ],
280
280
3 : context .copy (),
281
281
}, 'nikola.plugins.task.galleries:gallery' )],
@@ -305,7 +305,7 @@ def gen_tasks(self):
305
305
))],
306
306
'clean' : True ,
307
307
'uptodate' : [utils .config_changed ({
308
- 1 : self .kw ,
308
+ 1 : self .kw . copy () ,
309
309
}, 'nikola.plugins.task.galleries:rss' )],
310
310
}, self .kw ['filters' ])
311
311
@@ -366,7 +366,7 @@ def create_galleries(self):
366
366
'actions' : [(utils .makedirs , (output_gallery ,))],
367
367
'targets' : [output_gallery ],
368
368
'clean' : True ,
369
- 'uptodate' : [utils .config_changed (self .kw , 'nikola.plugins.task.galleries:mkdir' )],
369
+ 'uptodate' : [utils .config_changed (self .kw . copy () , 'nikola.plugins.task.galleries:mkdir' )],
370
370
}
371
371
372
372
def parse_index (self , gallery , input_folder , output_folder ):
@@ -493,7 +493,7 @@ def remove_excluded_image(self, img, input_folder):
493
493
(utils .remove_file , (thumb_path ,))
494
494
],
495
495
'clean' : True ,
496
- 'uptodate' : [utils .config_changed (self .kw , 'nikola.plugins.task.galleries:clean_thumb' )],
496
+ 'uptodate' : [utils .config_changed (self .kw . copy () , 'nikola.plugins.task.galleries:clean_thumb' )],
497
497
}, self .kw ['filters' ])
498
498
499
499
yield utils .apply_filters ({
@@ -503,7 +503,7 @@ def remove_excluded_image(self, img, input_folder):
503
503
(utils .remove_file , (img_path ,))
504
504
],
505
505
'clean' : True ,
506
- 'uptodate' : [utils .config_changed (self .kw , 'nikola.plugins.task.galleries:clean_file' )],
506
+ 'uptodate' : [utils .config_changed (self .kw . copy () , 'nikola.plugins.task.galleries:clean_file' )],
507
507
}, self .kw ['filters' ])
508
508
509
509
def render_gallery_index (
0 commit comments