File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
mpas_analysis/shared/html Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,10 @@ def generate(self):
185
185
186
186
outFileName = '{}/index.html' .format (htmlBaseDirectory )
187
187
188
- with open (outFileName , 'w' ) as mainFile :
189
- mainFile .write (pageText .encode ('ascii' , 'xmlcharrefreplace' ))
188
+ with open (outFileName , mode = 'w' ) as mainFile :
189
+ mainFile .write (
190
+ pageText .encode ('ascii' ,
191
+ 'xmlcharrefreplace' ).decode ('ascii' ))
190
192
191
193
# copy the css and js files
192
194
fileName = \
@@ -391,8 +393,10 @@ def generate(self):
391
393
392
394
outFileName = '{}/index.html' .format (self .directory )
393
395
394
- with open (outFileName , 'w' ) as componentFile :
395
- componentFile .write (pageText .encode ('ascii' , 'xmlcharrefreplace' ))
396
+ with open (outFileName , mode = 'w' ) as componentFile :
397
+ componentFile .write (
398
+ pageText .encode ('ascii' ,
399
+ 'xmlcharrefreplace' ).decode ('ascii' ))
396
400
397
401
def get_first_image (self ):
398
402
"""
You can’t perform that action at this time.
0 commit comments