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
b300d39c
Commit
b300d39c
authored
Jan 24, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core.pyx: fix OverlowError
parent
cd86f529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
gevent/core.pyx
gevent/core.pyx
+4
-6
No files found.
gevent/core.pyx
View file @
b300d39c
...
...
@@ -192,15 +192,14 @@ cdef class event:
def
__get__
(
self
):
result
=
[]
cdef
shor
t
events
=
self
.
ev
.
ev_events
cdef
shor
t
c_event
cdef
in
t
events
=
self
.
ev
.
ev_events
cdef
in
t
c_event
for
(
event
,
txt
)
in
((
EV_TIMEOUT
,
'TIMEOUT'
),
(
EV_READ
,
'READ'
),
(
EV_WRITE
,
'WRITE'
),
(
EV_SIGNAL
,
'SIGNAL'
),
(
EV_PERSIST
,
'PERSIST'
)):
c_event
=
event
if
events
&
c_event
:
result
.
append
(
txt
)
c_event
=
c_event
^
0xffffff
events
=
events
&
c_event
events
=
events
&
(
~
c_event
)
if
events
:
result
.
append
(
hex
(
events
))
return
'|'
.
join
(
result
)
...
...
@@ -221,8 +220,7 @@ cdef class event:
c_flag
=
flag
if
flags
&
c_flag
:
result
.
append
(
txt
)
c_flag
=
c_flag
^
0xffffffff
flags
=
flags
&
c_flag
flags
=
flags
&
(
~
c_flag
)
if
flags
:
result
.
append
(
hex
(
flags
))
return
'|'
.
join
(
result
)
...
...
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