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

Method __init__

pattern/web/soup/BeautifulSoup.py:893–905  ·  view source on GitHub ↗
(self, name=None, attrs={}, text=None, **kwargs)

Source from the content-addressed store, hash-verified

891 text)."""
892
893 def __init__(self, name=None, attrs={}, text=None, **kwargs):
894 self.name = name
895 if isinstance(attrs, basestring):
896 kwargs['class'] = _match_css_class(attrs)
897 attrs = None
898 if kwargs:
899 if attrs:
900 attrs = attrs.copy()
901 attrs.update(kwargs)
902 else:
903 attrs = kwargs
904 self.attrs = attrs
905 self.text = text
906
907 def __str__(self):
908 if self.text:

Callers

nothing calls this directly

Calls 3

_match_css_classFunction · 0.85
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected