From: Stefan Behnel Date: Thu, 11 Mar 2010 19:07:47 +0000 (+0100) Subject: Py2.3 fix X-Git-Tag: 0.13.beta0~319^2~2^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a66923a20cd13aa7138da6c76d3ea9f0bb7cdb0c;p=cython.git Py2.3 fix --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 80a1c081..61c68486 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -13,10 +13,10 @@ import sys try: from __builtin__ import set -except ImportError: +except (ImportError, AttributeError): try: from builtins import set - except ImportError: + except (ImportError, AttributeError): from sets import Set as set from Cython.Compiler.Scanning import PyrexScanner, FileSourceDescriptor