From d0c3b6a2c4a8b9fe87858464145ac7c4b88e08a0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 14 Mar 2010 13:45:52 +0100 Subject: [PATCH] Py2.3 fix --- Cython/Shadow.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cython/Shadow.py b/Cython/Shadow.py index ef058602..e3f7f9e7 100644 --- a/Cython/Shadow.py +++ b/Cython/Shadow.py @@ -161,14 +161,15 @@ except NameError: # Py3 py_long = int try: + # Python 3 + from builtins import set +except ImportError: try: + # Python 2.4+ from __builtin__ import set - except AttributeError: + except ImportError: # Py 2.3 from sets import Set as set -except ImportError: - # Python 3 - from builtins import set # Predefined types -- 2.26.2