Revision: 3333
Author: pekka.klarck
Date: Wed May 19 05:10:36 2010
Log: default value to comment (to make utests pass)
http://code.google.com/p/robotframework/source/detail?r=3333
Modified:
/trunk/src/robot/parsing/newmodel.py
=======================================
--- /trunk/src/robot/parsing/newmodel.py Wed May 19 05:00:45 2010
+++ /trunk/src/robot/parsing/newmodel.py Wed May 19 05:10:36 2010
@@ -128,7 +128,7 @@
def __init__(self):
self.variables = []
- def add(self, name, value, comment):
+ def add(self, name, value, comment=None):
self.variables.append(Variable(name, value, comment))
def __iter__(self):
@@ -172,7 +172,7 @@
class Variable(object):
- def __init__(self, name, value, comment):
+ def __init__(self, name, value, comment=None):
self.name = name.rstrip('= ')
if name.startswith('$') and value == []:
value = ''