Mercurial > hg > pyloader
comparison pyloader/factory.py @ 24:ce8fa574324d
fix syntax error
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 06 Jun 2011 07:46:47 -0700 |
parents | 9b2ca32e7a36 |
children | e547679d4bfd |
comparison
equal
deleted
inserted
replaced
23:9b2ca32e7a36 | 24:ce8fa574324d |
---|---|
133 try: | 133 try: |
134 value = parser.get(section, option) | 134 value = parser.get(section, option) |
135 except (InterpolationMissingOptionError, InterpolationSyntaxError): | 135 except (InterpolationMissingOptionError, InterpolationSyntaxError): |
136 value = parser.get(section, option, raw=True) | 136 value = parser.get(section, option, raw=True) |
137 | 137 |
138 if option = '.': # positional arguments | 138 if option == '.': # positional arguments |
139 sect['args'] = cast.str2list(value) | 139 sect['args'] = cast.str2list(value) |
140 else: | 140 else: |
141 sect.setdefault('kwargs', {})[option] = value | 141 sect.setdefault('kwargs', {})[option] = value |
142 | 142 |
143 return config | 143 return config |