comparison pyloader/factory.py @ 66:2a9274608af3

comment + whitespace
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 09:24:45 -0700
parents 6bb431e41e0b
children 236af713bbc0
comparison
equal deleted inserted replaced
65:6bb431e41e0b 66:2a9274608af3
186 path = path % defaults 186 path = path % defaults
187 sect = config[name] = dict(path=path) 187 sect = config[name] = dict(path=path)
188 188
189 # get arguments from .ini options 189 # get arguments from .ini options
190 for option, value in options.items(): 190 for option, value in options.items():
191
192 if option == '.': # positional arguments 191 if option == '.': # positional arguments
193 sect['args'] = cast.str2list(value) 192 sect['args'] = cast.str2list(value)
194 else: 193 else: # keyword arguments
195 sect.setdefault('kwargs', {})[option] = value 194 sect.setdefault('kwargs', {})[option] = value
196 195
197 # get the object definitions 196 # get the object definitions
198 for section, options in iniconfig.items(): 197 for section, options in iniconfig.items():
199 seen.add(section) 198 seen.add(section)