# HG changeset patch # User Jeff Hammel # Date 1341957243 25200 # Node ID ab2bd5dda72caa59383f8d2c94e03cc4b6508d0d # Parent 20c42ae0f7b7554f4153a7e1dbb00bebc0436778 basic form diff -r 20c42ae0f7b7 -r ab2bd5dda72c talosnames/main.py --- 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