From 22bcee228d954b97976f4d84c83f58ff7465d22a Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Sat, 16 Oct 2010 09:25:16 +0000 Subject: sugar.dispatch.dispatcher: remove fallback for Python 2.3 Other pieces of the code 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. Reviewed-by: James Cameron Acked-by: Simon Schampijer --- 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) -- cgit v0.9.1