from Cython.Utils import EncodedString
from Cython.Compiler.Errors import CompileError
import PyrexTypes
-from sets import Set as set
-import textwrap
+try:
+ set
+except NameError:
+ from sets import Set as set
+
+import textwrap
def dedent(text, reindent=0):
text = textwrap.dedent(text)
if reindent > 0:
from Cython.Compiler.TreeFragment import TreeFragment
from Cython.Utils import EncodedString
from Cython.Compiler.Errors import CompileError
-from sets import Set as set
+try:
+ set
+except NameError:
+ from sets import Set as set
class NormalizeTree(CythonTransform):
"""
get_special_method_signature, get_property_accessor_signature
import ControlFlow
import __builtin__
-from sets import Set as set
+try:
+ set
+except NameError:
+ from sets import Set as set
possible_identifier = re.compile(ur"(?![0-9])\w+$", re.U).match
nice_identifier = re.compile('^[a-zA-Z0-0_]+$').match