From 141c58f0c3e62eb28c517befb5a7dfd9f707aafd Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Apr 2010 15:34:11 +0200 Subject: [PATCH] code cleanup --- Cython/Compiler/Parsing.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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([ '+', '-', '*', '/', '%', '++', '--', '~', '|', '&', '^', '<<', '>>', '==', '!=', '>=', '>', '<=', '<', -- 2.26.2