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
cdbb5a1c
Commit
cdbb5a1c
authored
May 25, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add change note for #975 [skip ci]
parent
5bc2cf61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGES.rst
CHANGES.rst
+4
-1
src/gevent/monkey.py
src/gevent/monkey.py
+2
-2
No files found.
CHANGES.rst
View file @
cdbb5a1c
...
...
@@ -26,7 +26,7 @@
would cause callers using keyword arguments to raise a :exc:`TypeError`.
Reported in :issue:`960` by js6626069. Likewise, correct the
argument names for ``fromfd`` and ``socketpair`` on Python 2,
although they cannot be called wit keyword arguments under CPython.
although they cannot be called wit
h
keyword arguments under CPython.
.. note:: The ``gethost*`` functions take different argument names
under CPython and PyPy. gevent follows the CPython
...
...
@@ -37,6 +37,9 @@
exception object is stateful, including references to its context
and possibly traceback, which could lead to objects remaining alive
longer than intended.
- Make sure that ``python -m gevent.monkey <script>`` runs code in the
global scope, not the scope of the ``main`` function. Fixed in
:pr:`975` by Shawn Bohrer.
1.2.1 (2017-01-12)
==================
...
...
src/gevent/monkey.py
View file @
cdbb5a1c
...
...
@@ -672,9 +672,9 @@ def main():
__package__
=
None
assert
__package__
is
None
globals
()[
'__file__'
]
=
sys
.
argv
[
0
]
# issue #302
# Clear package so exec'd script doesn't appear in gevent package
globals
()[
'__package__'
]
=
None
globals
()[
'__package__'
]
=
None
# issue #975: make script be its own package
with
open
(
sys
.
argv
[
0
])
as
f
:
# Be sure to exec in globals to avoid import pollution. Also #975.
exec
(
f
.
read
(),
globals
())
else
:
print
(
script_help
)
...
...
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