Revision: 3302
Author: janne.t.harkonen
Date: Tue May 18 01:59:32 2010
Log: cleanup
http://code.google.com/p/robotframework/source/detail?r=3302
Modified:
/trunk/src/robot/parsing/populator.py
=======================================
--- /trunk/src/robot/parsing/populator.py Tue May 18 01:10:22 2010
+++ /trunk/src/robot/parsing/populator.py Tue May 18 01:59:32 2010
@@ -270,12 +270,11 @@
class NullPopulator(Populator):
- add = lambda self, row: None
- populate = lambda self: None
+ def add(self, row): pass
+ def populate(self): pass
class TestCaseFilePopulator(Populator):
- _null_populator = NullPopulator()
populators = utils.NormalizedDict({'Setting':
SettingTablePopulator,
'Settings':
SettingTablePopulator,
'Metadata':
SettingTablePopulator,
@@ -291,7 +290,7 @@
def __init__(self, datafile, path):
self._datafile = datafile
self._datafile.source = path
- self._current_populator = self._null_populator
+ self._current_populator = NullPopulator()
def start_table(self, name):
try: