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
bd7795ad
Commit
bd7795ad
authored
Sep 06, 2019
by
Jason Madden
Committed by
GitHub
Sep 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1454 from asottile/python4
Fix references to six.PY3 in case python4 becomes a thing
parents
dc2a6f94
b914fd44
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
5 deletions
+6
-5
src/gevent/_tblib.py
src/gevent/_tblib.py
+1
-1
src/gevent/testing/six.py
src/gevent/testing/six.py
+1
-0
src/gevent/testing/sysinfo.py
src/gevent/testing/sysinfo.py
+1
-1
src/gevent/tests/test__all__.py
src/gevent/tests/test__all__.py
+1
-1
src/gevent/tests/test__exc_info.py
src/gevent/tests/test__exc_info.py
+1
-1
src/gevent/tests/test__socket.py
src/gevent/tests/test__socket.py
+1
-1
No files found.
src/gevent/_tblib.py
View file @
bd7795ad
...
...
@@ -120,7 +120,7 @@ except ImportError:
__version__
=
'1.3.0'
__all__
=
(
'Traceback'
,)
PY3
=
sys
.
version_info
[
0
]
=
=
3
PY3
=
sys
.
version_info
[
0
]
>
=
3
FRAME_RE
=
re
.
compile
(
r'^\
s*File
"(?P<co_filename>.+)", line (?P<tb_lineno>\
d+)(, i
n (?P<co_name>.+))?$'
)
...
...
src/gevent/testing/six.py
View file @
bd7795ad
import
sys
# pylint:disable=unused-argument,import-error
PY2
=
sys
.
version_info
[
0
]
==
2
PY3
=
sys
.
version_info
[
0
]
>=
3
if
PY3
:
...
...
src/gevent/testing/sysinfo.py
View file @
bd7795ad
...
...
@@ -62,7 +62,7 @@ PY36 = None
PY37
=
None
NON_APPLICABLE_SUFFIXES
=
()
if
sys
.
version_info
[
0
]
=
=
3
:
if
sys
.
version_info
[
0
]
>
=
3
:
# Python 3
NON_APPLICABLE_SUFFIXES
+=
(
'2'
,
'279'
)
PY2
=
False
...
...
src/gevent/tests/test__all__.py
View file @
bd7795ad
...
...
@@ -27,7 +27,7 @@ NOT_IMPLEMENTED = {
'select'
:
ANY
,
'os'
:
ANY
,
'threading'
:
ANY
,
'
builtins'
if
six
.
PY3
else
'__builtin__
'
:
ANY
,
'
__builtin__'
if
six
.
PY2
else
'builtins
'
:
ANY
,
'signal'
:
ANY
,
}
...
...
src/gevent/tests/test__exc_info.py
View file @
bd7795ad
...
...
@@ -4,7 +4,7 @@ import gevent.testing as greentest
from
gevent.testing
import
six
from
gevent.testing
import
ExpectedException
as
ExpectedError
if
not
six
.
PY3
:
if
six
.
PY2
:
sys
.
exc_clear
()
class
RawException
(
Exception
):
...
...
src/gevent/tests/test__socket.py
View file @
bd7795ad
...
...
@@ -124,7 +124,7 @@ class TestTCP(greentest.TestCase):
def
test_sendall_str
(
self
):
self
.
_test_sendall
(
self
.
long_data
)
if
not
six
.
PY3
:
if
six
.
PY2
:
def
test_sendall_unicode
(
self
):
self
.
_test_sendall
(
six
.
text_type
(
self
.
long_data
))
...
...
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