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
c4c23b17
Commit
c4c23b17
authored
May 06, 2019
by
Dr Alex Meakins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made changes highlighted by code review,
parent
e86f7378
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Utils.py
Cython/Utils.py
+4
-5
runtests.py
runtests.py
+1
-0
No files found.
Cython/Utils.py
View file @
c4c23b17
...
...
@@ -147,16 +147,16 @@ def find_root_package_dir(file_path):
@
cached_function
def
check_package_dir
(
dir
,
package_names
):
def
check_package_dir
(
dir
_path
,
package_names
):
namespace
=
True
for
dirname
in
package_names
:
dir
=
os
.
path
.
join
(
dir
,
dirname
)
has_init
=
contains_init
(
dir
)
dir
_path
=
os
.
path
.
join
(
dir_path
,
dirname
)
has_init
=
contains_init
(
dir
_path
)
if
not
namespace
and
not
has_init
:
return
None
,
False
elif
has_init
:
namespace
=
False
return
dir
,
namespace
return
dir
_path
,
namespace
@
cached_function
...
...
@@ -167,7 +167,6 @@ def contains_init(dir_path):
return
1
@
cached_function
def
is_package_dir
(
dir_path
):
if
contains_init
(
dir_path
):
return
1
...
...
runtests.py
View file @
c4c23b17
...
...
@@ -428,6 +428,7 @@ VER_DEP_MODULES = {
'run.special_methods_T561_py2',
]),
(3,3) : (operator.lt, lambda x: x in ['build.package_compilation',
'build.cythonize_pep420_namespace',
'run.yield_from_py33',
'pyximport.pyximport_namespace',
'run.qualname',
...
...
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