Revision: 694b68d26aa3
Branch: default
Author: Pekka Klärck
Date: Thu May 30 23:33:02 2013
Log: fixed variables.replace_list to handle tuples. this problem was
made severe when Run Keyword If stopped to convert its arguments to lists.
http://code.google.com/p/robotframework/source/detail?r=694b68d26aa3
Modified:
/src/robot/variables/variables.py
=======================================
--- /src/robot/variables/variables.py Thu May 30 08:53:25 2013
+++ /src/robot/variables/variables.py Thu May 30 23:33:02 2013
@@ -178,6 +178,7 @@
want to resolve some of the arguments in the beginning and pass
others
to called keywords unmodified.
"""
+ items = list(items or [])
if replace_until is not None:
return self._replace_list_until(items, replace_until)
return self._replace_list(items)
@@ -204,7 +205,7 @@
def _replace_list(self, items):
results = []
- for item in items or []:
+ for item in items:
listvar =
self._replace_variables_inside_possible_list_var(item)
if listvar:
results.extend(self[listvar])
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.