forked from boyska/sito-hackit-17
python3 compatibility
This commit is contained in:
parent
3012d8add7
commit
01827360bc
1 changed files with 4 additions and 2 deletions
|
@ -307,8 +307,10 @@ class TalksGenerator(generators.Generator):
|
|||
if os.path.isdir(outdir):
|
||||
shutil.rmtree(outdir)
|
||||
shutil.copytree(self.talks[talkname]['resources'], outdir)
|
||||
with open(os.path.join(self.output_path, TALK_ICS), 'w') as buf:
|
||||
buf.write(talks_to_ics().encode('utf8'))
|
||||
with io.open(os.path.join(self.output_path, TALK_ICS),
|
||||
'w',
|
||||
encoding='utf8') as buf:
|
||||
buf.write(talks_to_ics())
|
||||
|
||||
|
||||
def add_talks_option_defaults(pelican):
|
||||
|
|
Loading…
Reference in a new issue