From: Stefan Behnel Date: Sat, 10 Apr 2010 13:34:11 +0000 (+0200) Subject: code cleanup X-Git-Tag: 0.13.beta0~224 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=141c58f0c3e62eb28c517befb5a7dfd9f707aafd;p=cython.git code cleanup --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 8dad877b..7287dd51 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -11,14 +11,6 @@ import os import re import sys -try: - from __builtin__ import set -except (ImportError, AttributeError): - try: - from builtins import set - except (ImportError, AttributeError): - from sets import Set as set - from Cython.Compiler.Scanning import PyrexScanner, FileSourceDescriptor import Nodes import ExprNodes @@ -1952,7 +1944,7 @@ def p_c_func_declarator(s, pos, ctx, base, cmethod_flag): exception_value = exc_val, exception_check = exc_check, nogil = nogil or ctx.nogil or with_gil, with_gil = with_gil) -supported_overloaded_operators = set([ +supported_overloaded_operators = cython.set([ '+', '-', '*', '/', '%', '++', '--', '~', '|', '&', '^', '<<', '>>', '==', '!=', '>=', '>', '<=', '<',