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
ac2b27dc
Commit
ac2b27dc
authored
Sep 16, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyflakes
parent
59581a8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gevent/monkey.py
gevent/monkey.py
+4
-3
greentest/test__issue302monkey.py
greentest/test__issue302monkey.py
+1
-0
No files found.
gevent/monkey.py
View file @
ac2b27dc
...
...
@@ -464,7 +464,7 @@ def main():
args
=
{}
argv
=
sys
.
argv
[
1
:]
verbose
=
False
script_help
=
_get_script_help
()
script_help
,
patch_all_args
,
modules
=
_get_script_help
()
while
argv
and
argv
[
0
].
startswith
(
'--'
):
option
=
argv
[
0
][
2
:]
if
option
==
'verbose'
:
...
...
@@ -493,6 +493,7 @@ def main():
if
argv
:
sys
.
argv
=
argv
__package__
=
None
assert
__package__
is
None
globals
()[
'__file__'
]
=
sys
.
argv
[
0
]
# issue #302
with
open
(
sys
.
argv
[
0
])
as
f
:
exec
(
f
.
read
())
...
...
@@ -514,9 +515,9 @@ specify a module to patch with --module, e.g. --socket. In the latter
case only the modules specified on the command line will be patched.
MONKEY OPTIONS: --verbose %s"""
%
', '
.
join
(
'--[no-]%s'
%
m
for
m
in
modules
)
return
script_help
return
script_help
,
patch_all_args
,
modules
main
.
__doc__
=
_get_script_help
()
main
.
__doc__
=
_get_script_help
()
[
0
]
if
__name__
==
'__main__'
:
main
()
greentest/test__issue302monkey.py
View file @
ac2b27dc
...
...
@@ -12,3 +12,4 @@ else:
import
socket
assert
'gevent'
in
repr
(
socket
.
socket
),
repr
(
socket
.
socket
)
assert
__file__
==
'test__issue302monkey.py'
,
repr
(
__file__
)
assert
__package__
is
None
,
__package__
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