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
9c014706
Commit
9c014706
authored
Jan 08, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More FFI fallout cleanup.
parent
17b074ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/gevent/_ffi/watcher.py
src/gevent/_ffi/watcher.py
+4
-0
src/gevent/libuv/watcher.py
src/gevent/libuv/watcher.py
+1
-3
No files found.
src/gevent/_ffi/watcher.py
View file @
9c014706
...
...
@@ -106,6 +106,10 @@ class AbstractWatcherType(type):
def
_fill_watcher
(
cls
,
name
,
bases
,
cls_dict
):
# TODO: refactor smaller
# pylint:disable=too-many-locals
if
name
.
endswith
(
'_'
):
# Strip trailing _ added to avoid keyword duplications
# e.g., async_
name
=
name
[:
-
1
]
def
_mro_get
(
attr
,
bases
,
error
=
True
):
for
b
in
bases
:
try
:
...
...
src/gevent/libuv/watcher.py
View file @
9c014706
...
...
@@ -444,7 +444,7 @@ class _SimulatedWithAsyncMixin(object):
_watcher_skip_ffi
=
True
def
__init__
(
self
,
loop
,
*
args
,
**
kwargs
):
self
.
_async
=
loop
.
async
()
self
.
_async
=
loop
.
async
_
()
super
(
_SimulatedWithAsyncMixin
,
self
).
__init__
(
loop
,
*
args
,
**
kwargs
)
def
_watcher_create
(
self
,
_args
):
...
...
@@ -538,8 +538,6 @@ class child(_SimulatedWithAsyncMixin,
class
async_
(
_base
.
AsyncMixin
,
watcher
):
_watcher_struct_name
=
'uv_async_t'
def
_watcher_ffi_init
(
self
,
args
):
# It's dangerous to have a raw, non-initted struct
# around; it will crash in uv_close() when we get GC'd,
...
...
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