Revision: 2979
Author: janne.t.harkonen
Date: Wed Apr 14 06:14:58 2010
Log: use the method to do this
http://code.google.com/p/robotframework/source/detail?r=2979

Modified:
 /trunk/src/robot/running/handlers.py

=======================================
--- /trunk/src/robot/running/handlers.py        Wed Apr 14 00:52:32 2010
+++ /trunk/src/robot/running/handlers.py        Wed Apr 14 06:14:58 2010
@@ -182,19 +182,8 @@

     def _process_args(self, args, variables):
index = RUN_KW_REGISTER.get_args_to_process(self.library.orig_name, self.name)
-        if index == 0:
-            self.arguments.check_arg_limits(args)
-            return args, {}
- # There might be @{list} variables and those might have more or less - # arguments that is needed. Therefore we need to go through arguments
-        # one by one.
-        processed = []
-        while len(processed) < index and args:
-            processed += variables.replace_list([args.pop(0)])
-        # In case @{list} variable is unpacked, the arguments going further
-        # needs to be escaped, otherwise those are unescaped twice.
- processed[index:] = [utils.escape(arg) for arg in processed[index:]]
-        args = processed + args
+        if index > 0:
+            args = variables.replace_from_beginning(index, args)
         self.arguments.check_arg_limits(args)
         return args, {}



--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to