(self, name=None, attrs={}, text=None, **kwargs)
| 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: |
nothing calls this directly
no test coverage detected