summaryrefslogtreecommitdiff
path: root/databases/zodb/files/patch-BTrees::convert.py
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-12-02 16:36:15 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-12-02 16:36:15 +0000
commita2b184cd1efcc66076171912442330a158e50e08 (patch)
tree7aee0681a98a377a6aafce1f86f8c3f3c2387367 /databases/zodb/files/patch-BTrees::convert.py
parentadd p5-WebService-Bloglines 0.02 (diff)
Fix build on Python 2.4.
Spotted by: kris
Notes
Notes: svn path=/head/; revision=122996
Diffstat (limited to 'databases/zodb/files/patch-BTrees::convert.py')
-rw-r--r--databases/zodb/files/patch-BTrees::convert.py16
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: