From 3978a8dc7c37be0d49f9cdb73adf18716689bacd Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Thu, 22 Mar 2007 09:04:28 +0000
Subject: [PATCH] python 2.3 does not have the "sets" builtin type, use
 sets.Set instead

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13546 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFActivity/ActivityBuffer.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/CMFActivity/ActivityBuffer.py b/product/CMFActivity/ActivityBuffer.py
index 666556e8b2..fa17458d34 100644
--- a/product/CMFActivity/ActivityBuffer.py
+++ b/product/CMFActivity/ActivityBuffer.py
@@ -33,6 +33,10 @@ try:
 except ImportError:
   pass
 
+# python2.3 compatibility
+if not hasattr(globals()['__builtins__'], 'set'):
+  from sets import Set as set
+
 # This variable is used to store thread-local buffered information.
 # This must be RAM-based, because the use of a volatile attribute does
 # not guarantee that the information persists until the end of a
-- 
2.30.9