clean up kwargs

This commit is contained in:
Alan Hamlett 2015-05-16 14:44:10 -07:00
parent 66a3be703f
commit 91784f5066

View file

@ -455,15 +455,11 @@ def main(argv=None):
project_name = args.alternate_project project_name = args.alternate_project
kwargs = vars(args) kwargs = vars(args)
if 'project' in kwargs: kwargs['project'] = project_name
del kwargs['project'] kwargs['branch'] = branch
kwargs['stats'] = stats
if send_heartbeat( if send_heartbeat(**kwargs):
project=project_name,
branch=branch,
stats=stats,
**kwargs
):
queue = Queue() queue = Queue()
while True: while True:
heartbeat = queue.pop() heartbeat = queue.pop()