From 0183ec9b86ff95465312ac3d55f45b0b5a609937 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Tue, 16 Feb 2010 21:54:12 -0300 Subject: [PATCH] Py2.3 compatibility fix --- Cython/Compiler/Parsing.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 3f545c10..a1e6a250 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -10,6 +10,13 @@ cython.declare(Nodes=object, ExprNodes=object, EncodedString=object) import os import re import sys + +try: + set +except NameError: + # Python 2.3 + from sets import Set as set + from Cython.Compiler.Scanning import PyrexScanner, FileSourceDescriptor import Nodes import ExprNodes -- 2.26.2