Mercurial > hg > pyloader
comparison pyloader/factory.py @ 75:20bdb8125817
inline wrapper arguments now seem to work....thats....uncanny
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 18:31:13 -0700 |
parents | 1f76705df520 |
children | 9203ca3a5182 |
comparison
equal
deleted
inserted
replaced
74:1f76705df520 | 75:20bdb8125817 |
---|---|
135 # inline wrapper arguments: | 135 # inline wrapper arguments: |
136 # [extended-fibonacci:@:four=4,five=5:fibonacci] | 136 # [extended-fibonacci:@:four=4,five=5:fibonacci] |
137 _wrapper_args = None | 137 _wrapper_args = None |
138 _wrapper_kwargs = None | 138 _wrapper_kwargs = None |
139 if ':' in _path: | 139 if ':' in _path: |
140 _wrapper_options, __path = path.split(':', 1) | 140 _wrapper_options, __path = _path.split(':', 1) |
141 if ',' in _wrapper_options or '=' in _wrapper_options: | 141 if ',' in _wrapper_options or '=' in _wrapper_options: |
142 # ,= : tokens to ensure these are wrapper options | 142 # ,= : tokens to ensure these are wrapper options |
143 # as these shouldn't be found in a real path (dotted path or file path) | 143 # as these shouldn't be found in a real path (dotted path or file path) |
144 _wrapper_args, _wrapper_kwargs = factory.str2args(_wrapper_options) | 144 _wrapper_args, _wrapper_kwargs = cast.str2args(_wrapper_options) |
145 _path = __path | 145 _path = __path |
146 | 146 |
147 if _path in names: | 147 if _path in names: |
148 # [foo:bar:fleem] | 148 # [foo:bar:fleem] |
149 wrapped_name = _path | 149 wrapped_name = _path |