projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ace2e4
)
fix for cython.set in Py3 (again)
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Mar 2010 11:42:47 +0000
(12:42 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Mar 2010 11:42:47 +0000
(12:42 +0100)
Cython/Shadow.py
patch
|
blob
|
history
diff --git
a/Cython/Shadow.py
b/Cython/Shadow.py
index 323fcec3987d0a147ddf623706d337cbf547551b..ef0586026c2e724833c75b20ab196cd4ea1a08d0 100644
(file)
--- a/
Cython/Shadow.py
+++ b/
Cython/Shadow.py
@@
-161,18
+161,14
@@
except NameError: # Py3
py_long = int
try:
- import __builtin__
+ try:
+ from __builtin__ import set
+ except AttributeError:
+ # Py 2.3
+ from sets import Set as set
except ImportError:
# Python 3
- import builtins as __builtin__
-
-try:
- set = __builtin__.set
-except AttributeError:
- # Py 2.3
- from sets import Set as set
-
-del __builtin__
+ from builtins import set
# Predefined types