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

Method __unicode__

suds/sax/attribute.py:180–187  ·  view source on GitHub ↗

get an xml string representation

(self)

Source from the content-addressed store, hash-verified

178 return u'%s="%s"' % (n, v)
179
180 def __unicode__(self):
181 """ get an xml string representation """
182 n = self.qname()
183 if self.hasText():
184 v = self.value.escape()
185 else:
186 v = self.value
187 return u'%s="%s"' % (n, v)

Callers

nothing calls this directly

Calls 3

qnameMethod · 0.95
hasTextMethod · 0.95
escapeMethod · 0.45

Tested by

no test coverage detected