Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
0c7af76d
Commit
0c7af76d
authored
Dec 11, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.3 fix.
parent
6922922e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+1
-5
Cython/Build/Inline.py
Cython/Build/Inline.py
+1
-0
Cython/Shadow.py
Cython/Shadow.py
+5
-9
No files found.
Cython/Build/Dependencies.py
View file @
0c7af76d
from
glob
import
glob
from
glob
import
glob
import
re
,
os
,
sys
import
re
,
os
,
sys
from
cython
import
set
try
:
set
except
NameError
:
# Python 2.3
from
sets
import
Set
as
set
from
distutils.extension
import
Extension
from
distutils.extension
import
Extension
...
...
Cython/Build/Inline.py
View file @
0c7af76d
import
tempfile
import
tempfile
import
sys
,
os
,
re
,
inspect
import
sys
,
os
,
re
,
inspect
from
cython
import
set
try
:
try
:
import
hashlib
import
hashlib
...
...
Cython/Shadow.py
View file @
0c7af76d
...
@@ -188,16 +188,12 @@ except NameError: # Py3
...
@@ -188,16 +188,12 @@ except NameError: # Py3
py_float
=
float
py_float
=
float
py_complex
=
complex
py_complex
=
complex
try
:
try
:
# Python 3
set
from
builtins
import
set
,
frozenset
except
NameError
:
except
ImportError
:
# Python 2.3
try
:
from
sets
import
Set
as
set
,
ImmutableSet
as
frozenset
# Python 2.4+
from
__builtin__
import
set
,
frozenset
except
ImportError
:
# Py 2.3
from
sets
import
Set
as
set
,
ImmutableSet
as
frozenset
# Predefined types
# Predefined types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment