Commit 1310dce6 authored by Jason Madden's avatar Jason Madden

Simplify getting all the slot names into persistent.persistence._SPECIAL_NAMES.

parent 7d9ac9fe
...@@ -540,6 +540,4 @@ def _estimated_size_in_24_bits(value): ...@@ -540,6 +540,4 @@ def _estimated_size_in_24_bits(value):
return 16777215 return 16777215
return (value//64) + 1 return (value//64) + 1
for _name in Persistent.__slots__: _SPECIAL_NAMES.update([intern('_Persistent' + x) for x in Persistent.__slots__])
_SPECIAL_NAMES.add(intern('_Persistent' + _name))
del _name
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