Commit c8d119e5 authored by Aurel's avatar Aurel

same as previous commit but in clear method


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@298 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7d75ebaa
...@@ -61,7 +61,7 @@ class PartitionTable(object): ...@@ -61,7 +61,7 @@ class PartitionTable(object):
def clear(self): def clear(self):
"""Forget an existing partition table.""" """Forget an existing partition table."""
self.num_filled_rows = 0 self.num_filled_rows = 0
self.partition_list = [[]] * self.np self.partition_list = [[] for x in xrange(num_partitions)]
self.count_dict.clear() self.count_dict.clear()
def getNodeList(self): def getNodeList(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment