Skip to content

Commit cd4118a

Browse files
authored
Merge pull request faif#194 from MahshidZ/patch-1
Update decorator.py
2 parents bcfc2e3 + d29fa82 commit cd4118a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structural/decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def render(self):
1313
return self._text
1414

1515

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

2424

25-
class ItalicWrapper(object):
25+
class ItalicWrapper(TextTag):
2626
"""Wraps a tag in <i>"""
2727
def __init__(self, wrapped):
2828
self._wrapped = wrapped

0 commit comments

Comments
 (0)