Commit d81e97e9 authored by Stefan Behnel's avatar Stefan Behnel

fix for cython.set in Py3 (again)

parent 3ace2e41
...@@ -161,18 +161,14 @@ except NameError: # Py3 ...@@ -161,18 +161,14 @@ except NameError: # Py3
py_long = int py_long = int
try: try:
import __builtin__ try:
except ImportError: from __builtin__ import set
# Python 3 except AttributeError:
import builtins as __builtin__
try:
set = __builtin__.set
except AttributeError:
# Py 2.3 # Py 2.3
from sets import Set as set from sets import Set as set
except ImportError:
del __builtin__ # Python 3
from builtins import set
# Predefined types # Predefined types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment