MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / __repr__

Method __repr__

wsdiscovery/scope.py:20–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 return self._value.replace(' ', '%20')
19
20 def __repr__(self):
21 if self.getMatchBy() == None or len(self.getMatchBy()) == 0:
22 return self.getValue()
23 else:
24 return self.getMatchBy() + ":" + self.getValue()
25
26

Callers

nothing calls this directly

Calls 2

getMatchByMethod · 0.95
getValueMethod · 0.95

Tested by

no test coverage detected