Commit f4eb48d9 authored by Vincent Pelletier's avatar Vincent Pelletier

BTreeData: Move docstring to correct property.

parent b4ba96a6
......@@ -43,13 +43,13 @@ class BTreeData(Persistent):
@chunk_size.setter
def chunk_size(self, value):
"""Prevent chunks from exceeding this size."""
if value is not None and (value <= 0 or int(value) != value):
raise ValueError('Invalid chunk_size')
self._chunk_size = value
@property
def max_chunk_size(self):
"""Prevent chunks from exceeding this size."""
return self._max_chunk_size
@max_chunk_size.setter
......
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