Mercurial > hg > autobot
changeset 248:2161425d0ab7
whitespace cleanup + comments
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 28 Dec 2011 10:05:48 -0800 |
parents | 042507e2bbe3 |
children | 76b4f58df3ee |
files | autobot/config.py |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/autobot/config.py Thu Dec 22 16:25:35 2011 -0800 +++ b/autobot/config.py Wed Dec 28 10:05:48 2011 -0800 @@ -1,5 +1,7 @@ +#!/usr/bin/env python + """ -tools for interpolating buildbot config +tools for interpolating buildbot configuration """ import sys @@ -13,9 +15,11 @@ """ def __init__(self, filename): + + # read the .ini file self.parser = RawConfigParser() self.parser.read(filename) - + # get global information master = ':master:' self.master = self.section_dict(master) @@ -59,7 +63,7 @@ 'factories': _factories, 'platform': platform } continue - + # get factories self.args[section] = self.section_dict(section)