/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-02 02:58:10 UTC
  • Revision ID: teddy@recompile.se-20190302025810-1wia62krmmjcip6m
mandos-ctl: Refactor

* mandos-ctl (TableOfClients.row_formatting_string): Avoid unnecessary
                                                     max() invocation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
        "Format string used to format table rows"
319
319
        return " ".join("{{{key}:{width}}}".format(
320
320
            width=max(len(self.tablewords[key]),
321
 
                      max(len(self.string_from_client(client, key))
322
 
                          for client in self.clients)),
 
321
                      *(len(self.string_from_client(client, key))
 
322
                        for client in self.clients)),
323
323
            key=key)
324
324
                                 for key in self.keywords)
325
325