Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
7aacdb78
Commit
7aacdb78
authored
Nov 03, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greentest.py: add include_so argument to walk_modules
parent
91e11d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
greentest/greentest.py
greentest/greentest.py
+8
-4
No files found.
greentest/greentest.py
View file @
7aacdb78
...
...
@@ -325,7 +325,7 @@ class ExpectedException(Exception):
"""An exception whose traceback should be ignored"""
def
walk_modules
(
basedir
=
None
,
modpath
=
None
):
def
walk_modules
(
basedir
=
None
,
modpath
=
None
,
include_so
=
False
):
if
basedir
is
None
:
basedir
=
os
.
path
.
dirname
(
gevent
.
__file__
)
if
modpath
is
None
:
...
...
@@ -342,6 +342,10 @@ def walk_modules(basedir=None, modpath=None):
for
p
,
m
in
walk_modules
(
path
,
modpath
+
fn
+
"."
):
yield
p
,
m
continue
if
not
fn
.
endswith
(
'.py'
)
or
fn
in
[
'__init__.py'
,
'core.py'
]:
continue
yield
path
,
modpath
+
fn
[:
-
3
]
if
fn
.
endswith
(
'.py'
)
and
fn
not
in
[
'__init__.py'
,
'core.py'
]:
yield
path
,
modpath
+
fn
[:
-
3
]
elif
include_so
and
fn
.
endswith
(
'.so'
):
if
fn
.
endswith
(
'_d.so'
):
yield
path
,
modpath
+
fn
[:
-
5
]
else
:
yield
path
,
modpath
+
fn
[:
-
3
]
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