Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions structural/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def render(self):
return self._text


class BoldWrapper(object):
class BoldWrapper(TextTag):
"""Wraps a tag in <b>"""
def __init__(self, wrapped):
self._wrapped = wrapped
Expand All @@ -22,7 +22,7 @@ def render(self):
return "<b>{}</b>".format(self._wrapped.render())


class ItalicWrapper(object):
class ItalicWrapper(TextTag):
"""Wraps a tag in <i>"""
def __init__(self, wrapped):
self._wrapped = wrapped
Expand Down