def humanize(self): """Returns a human readable string showing changes to the configuration.""" return '\n'.join( '{0}: {1}'.format(key, pretty(value, width=50)) for key, value in items(filter_hidden_settings(dict( (k, v) for k, v in items(self.without_defaults()) if k.isupper() and not k.startswith('_')))))
def humanize(self): """Returns a human readable string showing changes to the configuration.""" return '\n'.join( '%s: %s' % (key, pretty(value, width=50)) for key, value in filter_hidden_settings( dict((k, v) for k, v in self.without_defaults().iteritems() if k.isupper() and not k.startswith('_'))).iteritems())
def humanize(self, with_defaults=False, censored=True): """Return a human readable string showing changes to the configuration.""" return '\n'.join( '{0}: {1}'.format(key, pretty(value, width=50)) for key, value in items(self.table(with_defaults, censored)))
def test_pretty(self): self.assertTrue(pretty(('a', 'b', 'c')))
def humanize(self, with_defaults=False, censored=True): """Return a human readable text showing configuration changes.""" return '\n'.join( '{0}: {1}'.format(key, pretty(value, width=50)) for key, value in items(self.table(with_defaults, censored)))
def humanize(self): """Returns a human readable string showing changes to the configuration.""" return '\n'.join('{0}: {1}'.format(key, pretty(value, width=50)) for key, value in self.without_defaults().iteritems())
def test_pretty(): assert pretty(('a', 'b', 'c'))
def humanize(self, with_defaults=False, censored=True): """Return a human readable text showing configuration changes.""" return "\n".join( "{0}: {1}".format(key, pretty(value, width=50)) for key, value in items(self.table(with_defaults, censored)) )
def humanize(self): return '\n'.join(SETTINGS_INFO % (key + ':', pretty(value, width=50)) for key, value in self.without_defaults().iteritems())
def test_pretty(self): self.assertTrue(text.pretty(("a", "b", "c")))