File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,18 +121,18 @@ def gen_gallery(app, doctree):
121
121
122
122
gallery_path = os .path .join (app .builder .srcdir , '_templates' , 'gallery.html' )
123
123
if os .path .exists (gallery_path ):
124
- fh = file (gallery_path , 'r' )
124
+ fh = open (gallery_path , 'r' )
125
125
regenerate = fh .read () != content
126
126
fh .close ()
127
127
else :
128
128
regenerate = True
129
129
if regenerate :
130
- fh = file (gallery_path , 'w' )
130
+ fh = open (gallery_path , 'w' )
131
131
fh .write (content )
132
132
fh .close ()
133
133
134
134
for key in app .builder .status_iterator (
135
- thumbnails .iterkeys ( ), "generating thumbnails... " ,
135
+ iter ( thumbnails .keys () ), "generating thumbnails... " ,
136
136
length = len (thumbnails )):
137
137
image .thumbnail (key , thumbnails [key ], 0.3 )
138
138
You can’t perform that action at this time.
0 commit comments