Revision: 3414
Author: jprantan
Date: Mon May 24 04:58:12 2010
Log: Fixed comment with for loop and added attribute is_for_loop to make
client code cleaner.
http://code.google.com/p/robotframework/source/detail?r=3414
Modified:
/trunk/src/robot/parsing/model.py
=======================================
--- /trunk/src/robot/parsing/model.py Mon May 24 04:48:47 2010
+++ /trunk/src/robot/parsing/model.py Mon May 24 04:58:12 2010
@@ -370,6 +370,12 @@
return item.upper() == 'IN RANGE', index
return False, len(content)
+ def is_comment(self):
+ return False
+
+ def is_for_loop(self):
+ return True
+
class Step(object):
@@ -392,4 +398,7 @@
return vars
def is_comment(self):
- return not self.assign and not self.keyword and not self.args
+ return not (self.assign or self.keyword or self.args)
+
+ def is_for_loop(self):
+ return False