Commit 191d17ed authored by Vincent Pelletier's avatar Vincent Pelletier

Use more python-ish way to generate a list of lists. Found py pylint.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@889 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 95456ff6
...@@ -60,7 +60,7 @@ class PartitionTable(object): ...@@ -60,7 +60,7 @@ class PartitionTable(object):
self.np = num_partitions self.np = num_partitions
self.nr = num_replicas self.nr = num_replicas
self.num_filled_rows = 0 self.num_filled_rows = 0
self.partition_list = [[] for x in xrange(num_partitions)] self.partition_list = [[]] * num_partitions
self.count_dict = {} self.count_dict = {}
def getID(self): def getID(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