MCPcopy Create free account
hub / github.com/clips/pattern / _getAttrMap

Method _getAttrMap

pattern/web/soup/BeautifulSoup.py:864–871  ·  view source on GitHub ↗

Initializes a map representation of this tag's attributes, if not already initialized.

(self)

Source from the content-addressed store, hash-verified

862 #Private methods
863
864 def _getAttrMap(self):
865 """Initializes a map representation of this tag's attributes,
866 if not already initialized."""
867 if not getattr(self, 'attrMap'):
868 self.attrMap = {}
869 for (key, value) in self.attrs:
870 self.attrMap[key] = value
871 return self.attrMap
872
873 #Generator methods
874 def childGenerator(self):

Callers 7

getMethod · 0.95
has_keyMethod · 0.95
__getitem__Method · 0.95
__setitem__Method · 0.95
__delitem__Method · 0.95
attributesMethod · 0.80
popTagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected