MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __str__

Method __str__

suds/sax/attribute.py:171–178  ·  view source on GitHub ↗

get an xml string representation

(self)

Source from the content-addressed store, hash-verified

169 self.value)
170
171 def __str__(self):
172 """ get an xml string representation """
173 n = self.qname()
174 if self.hasText():
175 v = self.value.escape()
176 else:
177 v = self.value
178 return u'%s="%s"' % (n, v)
179
180 def __unicode__(self):
181 """ get an xml string representation """

Callers

nothing calls this directly

Calls 3

qnameMethod · 0.95
hasTextMethod · 0.95
escapeMethod · 0.45

Tested by

no test coverage detected