changeset 71:2261cf505daf

interpolate "inline" wrapper arguments
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 18:03:16 -0700
parents 7ec0ca0134ff
children 6f384c989a29
files pyloader/cast.py pyloader/factory.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyloader/cast.py	Thu Jun 09 17:57:12 2011 -0700
+++ b/pyloader/cast.py	Thu Jun 09 18:03:16 2011 -0700
@@ -29,7 +29,7 @@
   string = string.rstrip(separator)
   return [i.strip() for i in string.split(separator)]
 
-def str2args(string, separator=None):
+def str2args(string, separator=','):
   args = str2list(string, separator)
   _args = []
   kw = {}
--- a/pyloader/factory.py	Thu Jun 09 17:57:12 2011 -0700
+++ b/pyloader/factory.py	Thu Jun 09 18:03:16 2011 -0700
@@ -140,7 +140,7 @@
                             # ,= : tokens to ensure these are wrapper options
                             # as these shouldn't be found in a real path (dotted path or file path)
 
-                            _wrapper_options = None # TODO
+                            _wrapper_args, _wrapper_kwargs = factory.str2args(_wrapper_options)
 
                     # TODO: will be correct for
                     # [foo:bar:%(here)s/objects.py:MyClass]