Пример #1
0
 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('_')))))
Пример #2
0
 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())
Пример #3
0
 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)))
Пример #4
0
 def test_pretty(self):
     self.assertTrue(pretty(('a', 'b', 'c')))
Пример #5
0
 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)))
Пример #6
0
 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())
Пример #7
0
 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())
Пример #8
0
def test_pretty():
    assert pretty(('a', 'b', 'c'))
Пример #9
0
 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))
     )
Пример #10
0
 def test_pretty(self):
     self.assertTrue(pretty(('a', 'b', 'c')))
Пример #11
0
 def humanize(self):
     return '\n'.join(SETTINGS_INFO % (key + ':', pretty(value, width=50))
                 for key, value in self.without_defaults().iteritems())
def test_pretty():
    assert pretty(('a', 'b', 'c'))
Пример #13
0
 def test_pretty(self):
     self.assertTrue(text.pretty(("a", "b", "c")))
Пример #14
0
 def test_pretty(self):
     self.assertTrue(text.pretty(("a", "b", "c")))