Skip to content

Commit

Permalink
Remove relative field, and useless assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Nov 5, 2015
1 parent b424f24 commit 0f3ea52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/darkslide/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def process(self, content, source=None, context=None):
class FixImagePathsMacro(Macro):
"""Replaces html image paths with fully qualified absolute urls"""

relative = False
macro_re = re.compile(
r'<img.*?src="(?!https?://|file://)(.*?)"'
r'|<object[^<>]+?data="(?!http://)(.*?)"[^<>]+?type="image/svg\+xml"',
Expand Down Expand Up @@ -203,7 +202,6 @@ class FooterMacro(Macro):

def process(self, content, source=None, context=None):
classes = []
assert context is not None

def save(match):
self.footer = match.group(1)
Expand Down

0 comments on commit 0f3ea52

Please sign in to comment.