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
526a0905
Commit
526a0905
authored
Mar 04, 2014
by
Fantix King
Committed by
Denis Bilenko
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pyflakes warnings on PY3
parent
85040239
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
gevent/hub.py
gevent/hub.py
+4
-3
gevent/monkey.py
gevent/monkey.py
+2
-1
greentest/six.py
greentest/six.py
+3
-2
No files found.
gevent/hub.py
View file @
526a0905
...
...
@@ -41,9 +41,10 @@ if PY3:
raise
value
else
:
string_types
=
basestring
,
integer_types
=
(
int
,
long
)
xrange
=
xrange
import
__builtin__
string_types
=
__builtin__
.
basestring
,
integer_types
=
(
int
,
__builtin__
.
long
)
xrange
=
__builtin__
.
xrange
from
gevent._util_py2
import
reraise
...
...
gevent/monkey.py
View file @
526a0905
...
...
@@ -18,7 +18,8 @@ __all__ = ['patch_all',
if
sys
.
version_info
[
0
]
>=
3
:
string_types
=
str
,
else
:
string_types
=
basestring
,
import
__builtin__
string_types
=
__builtin__
.
basestring
# maps module name -> attribute name -> original item
...
...
greentest/six.py
View file @
526a0905
...
...
@@ -34,5 +34,6 @@ else:
locs
=
globs
exec
(
"""exec code in globs, locs"""
)
xrange
=
xrange
string_types
=
basestring
,
import
__builtin__
as
builtins
xrange
=
builtins
.
xrange
string_types
=
builtins
.
basestring
,
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