diff options
Diffstat (limited to 'databases/zodb/files/patch-BTrees::convert.py')
-rw-r--r-- | databases/zodb/files/patch-BTrees::convert.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/zodb/files/patch-BTrees::convert.py b/databases/zodb/files/patch-BTrees::convert.py new file mode 100644 index 000000000000..67d395849670 --- /dev/null +++ b/databases/zodb/files/patch-BTrees::convert.py @@ -0,0 +1,16 @@ +--- BTrees/convert.py.orig Fri Dec 3 01:25:34 2004 ++++ BTrees/convert.py Fri Dec 3 01:26:15 2004 +@@ -13,11 +13,11 @@ + ############################################################################## + + +-def convert(old, new, threshold=200, f=None, None=None): ++def convert(old, new, threshold=200, f=None, _None=None): + "Utility for converting old btree to new" + n=0 + for k, v in old.items(): +- if f is not None: v=f(v) ++ if f is not _None: v=f(v) + new[k]=v + n=n+1 + if n > threshold: |