From a2b184cd1efcc66076171912442330a158e50e08 Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Thu, 2 Dec 2004 16:36:15 +0000 Subject: Fix build on Python 2.4. Spotted by: kris --- databases/zodb/files/patch-BTrees::convert.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/zodb/files/patch-BTrees::convert.py (limited to 'databases/zodb/files/patch-BTrees::convert.py') 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: -- cgit v1.2.3