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):
|
if os.path.isdir(outdir):
|
||||||
shutil.rmtree(outdir)
|
shutil.rmtree(outdir)
|
||||||
shutil.copytree(self.talks[talkname]['resources'], outdir)
|
shutil.copytree(self.talks[talkname]['resources'], outdir)
|
||||||
with open(os.path.join(self.output_path, TALK_ICS), 'w') as buf:
|
with io.open(os.path.join(self.output_path, TALK_ICS),
|
||||||
buf.write(talks_to_ics().encode('utf8'))
|
'w',
|
||||||
|
encoding='utf8') as buf:
|
||||||
|
buf.write(talks_to_ics())
|
||||||
|
|
||||||
|
|
||||||
def add_talks_option_defaults(pelican):
|
def add_talks_option_defaults(pelican):
|
||||||
|
|
Loading…
Reference in a new issue