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
14c1d8df
Commit
14c1d8df
authored
May 03, 2018
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Python 3 issues.
parent
886b9e8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+2
-2
Cython/Build/Tests/TestCyCache.py
Cython/Build/Tests/TestCyCache.py
+1
-1
No files found.
Cython/Build/Dependencies.py
View file @
14c1d8df
...
@@ -1157,9 +1157,9 @@ def cythonize_one(pyx_file, c_file, fingerprint, quiet, options=None,
...
@@ -1157,9 +1157,9 @@ def cythonize_one(pyx_file, c_file, fingerprint, quiet, options=None,
elif
os
.
path
.
exists
(
c_file
):
elif
os
.
path
.
exists
(
c_file
):
os
.
remove
(
c_file
)
os
.
remove
(
c_file
)
elif
fingerprint
:
elif
fingerprint
:
artifacts
=
filter
(
None
,
[
artifacts
=
list
(
filter
(
None
,
[
getattr
(
result
,
attr
,
None
)
getattr
(
result
,
attr
,
None
)
for
attr
in
(
'c_file'
,
'h_file'
,
'api_file'
,
'i_file'
)])
for
attr
in
(
'c_file'
,
'h_file'
,
'api_file'
,
'i_file'
)])
)
if
len
(
artifacts
)
==
1
:
if
len
(
artifacts
)
==
1
:
fingerprint_file
=
gz_fingerprint_file
fingerprint_file
=
gz_fingerprint_file
with
open
(
c_file
,
'rb'
)
as
f
:
with
open
(
c_file
,
'rb'
)
as
f
:
...
...
Cython/Build/Tests/TestCyCache.py
View file @
14c1d8df
...
@@ -58,7 +58,7 @@ class TestInline(CythonTest):
...
@@ -58,7 +58,7 @@ class TestInline(CythonTest):
open
(
a_pyx
,
'w'
).
write
(
'pass'
)
open
(
a_pyx
,
'w'
).
write
(
'pass'
)
self
.
fresh_cythonize
(
a_pyx
,
cache
=
self
.
cache_dir
)
self
.
fresh_cythonize
(
a_pyx
,
cache
=
self
.
cache_dir
)
a_cache
=
os
.
path
.
join
(
self
.
cache_dir
,
os
.
listdir
(
self
.
cache_dir
)[
0
])
a_cache
=
os
.
path
.
join
(
self
.
cache_dir
,
os
.
listdir
(
self
.
cache_dir
)[
0
])
gzip
.
GzipFile
(
a_cache
,
'wb'
).
write
(
'fake stuff'
)
gzip
.
GzipFile
(
a_cache
,
'wb'
).
write
(
'fake stuff'
.
encode
(
'ascii'
)
)
os
.
unlink
(
a_c
)
os
.
unlink
(
a_c
)
self
.
fresh_cythonize
(
a_pyx
,
cache
=
self
.
cache_dir
)
self
.
fresh_cythonize
(
a_pyx
,
cache
=
self
.
cache_dir
)
a_contents
=
open
(
a_c
).
read
()
a_contents
=
open
(
a_c
).
read
()
...
...
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