projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a2f5d
)
Py2.3 fix
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Mar 2010 12:45:52 +0000
(13:45 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Mar 2010 12:45:52 +0000
(13:45 +0100)
Cython/Shadow.py
patch
|
blob
|
history
diff --git
a/Cython/Shadow.py
b/Cython/Shadow.py
index ef0586026c2e724833c75b20ab196cd4ea1a08d0..e3f7f9e74a0654e53f04f44b0f6c664e8834e34a 100644
(file)
--- a/
Cython/Shadow.py
+++ b/
Cython/Shadow.py
@@
-161,14
+161,15
@@
except NameError: # Py3
py_long = int
try:
+ # Python 3
+ from builtins import set
+except ImportError:
try:
+ # Python 2.4+
from __builtin__ import set
- except
Attribute
Error:
+ except
Import
Error:
# Py 2.3
from sets import Set as set
-except ImportError:
- # Python 3
- from builtins import set
# Predefined types