From: Lisandro Dalcin Date: Wed, 17 Feb 2010 00:54:12 +0000 (-0300) Subject: Py2.3 compatibility fix X-Git-Tag: 0.13.beta0~340^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0183ec9b86ff95465312ac3d55f45b0b5a609937;p=cython.git Py2.3 compatibility fix --- 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