From a66923a20cd13aa7138da6c76d3ea9f0bb7cdb0c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Mar 2010 20:07:47 +0100 Subject: [PATCH] Py2.3 fix --- Cython/Compiler/Parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2