[Sugar-devel] [PATCH sugar-base 06/17] sugar.dispatch.dispatcher: remove fallback for Python 2.3

Sascha Silbe sascha-pgp at silbe.org
Sat Oct 16 07:30:19 EDT 2010


Other pieces of the piece rely on Python 2.5, so there's no point in keeping
this. pep8 complained about lack of spacing in front of the inline comment,
so it needed touching anyway.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/sugar/dispatch/dispatcher.py b/src/sugar/dispatch/dispatcher.py
index c9e1dd1..2138703 100644
--- a/src/sugar/dispatch/dispatcher.py
+++ b/src/sugar/dispatch/dispatcher.py
@@ -1,9 +1,4 @@
 import weakref
-try:
-    set
-except NameError:
-    from sets import Set as set # Python 2.3 fallback
-
 from sugar.dispatch import saferef
 
 WEAKREF_TYPES = (weakref.ReferenceType, saferef.BoundMethodWeakref)
-- 
1.7.1



More information about the Sugar-devel mailing list