Revision: 2840
Author: janne.t.harkonen
Date: Tue Apr  6 07:01:26 2010
Log: only coerce to string if name really is argument name
http://code.google.com/p/robotframework/source/detail?r=2840

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

=======================================
--- /trunk/src/robot/running/handlers.py        Tue Apr  6 03:35:01 2010
+++ /trunk/src/robot/running/handlers.py        Tue Apr  6 07:01:26 2010
@@ -159,11 +159,11 @@
         return True

     def _parse_kwarg(self, arg):
-        return dict([self._split_from_kwarg_sep(arg)])
+       name, value = self._split_from_kwarg_sep(arg)
+        return {str(name): value}

     def _split_from_kwarg_sep(self, arg):
-        name, value = arg.split('=', 1)
-        return str(name), value
+        return arg.split('=', 1)

     def _parse_posarg(self, argstr):
         if self._is_str_with_kwarg_sep(argstr):


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

Reply via email to