From: Stefan Behnel Date: Sun, 14 Mar 2010 12:45:52 +0000 (+0100) Subject: Py2.3 fix X-Git-Tag: 0.13.beta0~289 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0c3b6a2c4a8b9fe87858464145ac7c4b88e08a0;p=cython.git Py2.3 fix --- 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