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
359ed6c4
Commit
359ed6c4
authored
May 30, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core_.pyx: define basestring where not present (py3k)
parent
4ea578c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gevent/core_.pyx
gevent/core_.pyx
+7
-0
No files found.
gevent/core_.pyx
View file @
359ed6c4
...
...
@@ -2,6 +2,7 @@
cimport
cython
cimport
libev
from
python
cimport
*
import
sys
__all__
=
[
'get_version'
,
...
...
@@ -142,6 +143,12 @@ cpdef _flags_to_list(unsigned int flags):
return
result
if
sys
.
version_info
[
0
]
>=
3
:
basestring
=
(
bytes
,
str
)
else
:
basestring
=
__builtins__
.
basestring
cpdef
unsigned
int
_flags_to_int
(
object
flags
)
except
?
-
1
:
# Note, that order does not matter, libev has its own predefined order
if
flags
is
None
:
...
...
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