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

Method trim

suds/sax/element.py:264–272  ·  view source on GitHub ↗

Trim leading and trailing whitespace. @return: self @rtype: L{Element}

(self)

Source from the content-addressed store, hash-verified

262 return default
263
264 def trim(self):
265 """
266 Trim leading and trailing whitespace.
267 @return: self
268 @rtype: L{Element}
269 """
270 if self.hasText():
271 self.text = self.text.trim()
272 return self
273
274 def hasText(self):
275 """

Callers

nothing calls this directly

Calls 1

hasTextMethod · 0.95

Tested by

no test coverage detected