Skip to content

Commit

Permalink
irclogs: v8 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 16, 2017
1 parent 7de1666 commit 47f0f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/irclogs/irclogs.py
Expand Up @@ -51,7 +51,8 @@ class CompileIRCLogs(PageCompiler):
"""Compile IRC logs into HTML."""
name = "irclogs"

def compile_html(self, source, dest, is_two_file=True):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
"""Compile into HTML, using NikolaPygmentsHTML."""
makedirs(os.path.dirname(dest))
with io.open(dest, "w+", encoding="utf8") as out_file:
Expand All @@ -63,4 +64,3 @@ def compile_html(self, source, dest, is_two_file=True):
link_matcher = re.compile(r"(http[s]?://[^\s]+)")
data = link_matcher.sub(r'<a href="\1" rel="nofollow">\1</a>', data)
out_file.write(data)
return True

0 comments on commit 47f0f74

Please sign in to comment.