INNER CODE UNIT · Python
_build_showstr
siznax/wptools · wptools/core.py:63
def _build_showstr(self, seed):
"""
Returns show() display string for data attribute
"""
output = ["%s (%s) data" % (seed, self.params['lang'])]
output.append('{')
maxwidth = WPToolsQuery.MAXWIDTH
for item in sorted(self.data):
if self.data[item] is None:
continue
prefix = item
value = self.data[item]