Reverted changes, this .map needs a manual
This commit is contained in:
parent
6460ac1766
commit
9d0c9af6f4
|
|
@ -46,7 +46,7 @@ class BaseContainer:
|
|||
return self.content[start:end]
|
||||
|
||||
def __rshift__(self, other):
|
||||
return self.map[other]
|
||||
return self.map[other]()
|
||||
|
||||
def __eq__(self, other):
|
||||
if len(self) != len(other):
|
||||
|
|
@ -106,6 +106,20 @@ class BaseContainerWithOptionals(BaseContainer):
|
|||
rlist += [o]
|
||||
return rlist
|
||||
|
||||
# def all_html_insert(self):
|
||||
# """
|
||||
# Returns a list of all html_inserts, and an empty list if none exist.
|
||||
# :rtype: list
|
||||
# """
|
||||
# return [o.content for o in self.fetch_html_insert()]
|
||||
#
|
||||
# def all_class_insert(self):
|
||||
# """
|
||||
# Returns a list of all class_inserts, and an empty list if none exist.
|
||||
# :rtype: list
|
||||
# """
|
||||
# return [o.content for o in self.fetch_class_insert()]
|
||||
|
||||
|
||||
# Define containers all the Enhanced text elements, divs, headers, list and any element that can be a container
|
||||
class TextContainer(BaseContainer):
|
||||
|
|
|
|||
Loading…
Reference in New Issue