Mercurial > mozilla > hg > talosnames
changeset 9:ab2bd5dda72c
basic form
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 10 Jul 2012 14:54:03 -0700 |
parents | 20c42ae0f7b7 |
children | 1029ddf7b806 |
files | talosnames/main.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/talosnames/main.py Tue Jul 10 14:31:13 2012 -0700 +++ b/talosnames/main.py Tue Jul 10 14:54:03 2012 -0700 @@ -10,15 +10,15 @@ from commandparser import CommandParser from pprint import pprint -class TalosNamesCLI(CommandParser): +class TalosNamesCLI(object): def __init__(self): self.api = api.TalosNames() def graphserver(self, *names): if not names: names = [None] - for arg in args: - for name, graphserver_name in names(arg): + for arg in names: + for name, graphserver_name in self.api(arg): print '%s : %s' % (name, graphserver_name) print