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
fa1a2ed6
Commit
fa1a2ed6
authored
Dec 21, 2013
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm 'from __future__ import with_statement'
not needed since 2.5 is not supported anymore.
parent
48d70025
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
2 additions
and
24 deletions
+2
-24
examples/dns_mass_resolve.py
examples/dns_mass_resolve.py
+0
-1
examples/psycopg2_pool.py
examples/psycopg2_pool.py
+0
-1
gevent/fileobject.py
gevent/fileobject.py
+1
-1
gevent/threadpool.py
gevent/threadpool.py
+1
-1
greentest/greentest.py
greentest/greentest.py
+0
-1
greentest/lock_tests.py
greentest/lock_tests.py
+0
-2
greentest/test__api_timeout.py
greentest/test__api_timeout.py
+0
-1
greentest/test__core_async.py
greentest/test__core_async.py
+0
-1
greentest/test__core_stat.py
greentest/test__core_stat.py
+0
-1
greentest/test__example_echoserver.py
greentest/test__example_echoserver.py
+0
-1
greentest/test__example_portforwarder.py
greentest/test__example_portforwarder.py
+0
-1
greentest/test__pool.py
greentest/test__pool.py
+0
-1
greentest/test__queue.py
greentest/test__queue.py
+0
-1
greentest/test__sleep0.py
greentest/test__sleep0.py
+0
-1
greentest/test__socket_dns.py
greentest/test__socket_dns.py
+0
-1
greentest/test__socket_dns6.py
greentest/test__socket_dns6.py
+0
-1
greentest/test__threading_vs_settrace.py
greentest/test__threading_vs_settrace.py
+0
-2
greentest/test__threadpool.py
greentest/test__threadpool.py
+0
-1
greentest/test_hub_join_timeout.py
greentest/test_hub_join_timeout.py
+0
-1
greentest/test_queue.py
greentest/test_queue.py
+0
-1
greentest/test_threading_2.py
greentest/test_threading_2.py
+0
-1
greentest/util.py
greentest/util.py
+0
-1
No files found.
examples/dns_mass_resolve.py
View file @
fa1a2ed6
...
...
@@ -10,7 +10,6 @@ variable. To enable threading resolver:
GEVENT_RESOLVER=thread python dns_mass_resolve.py
"""
from
__future__
import
print_function
from
__future__
import
with_statement
import
gevent
from
gevent
import
socket
from
gevent.pool
import
Pool
...
...
examples/psycopg2_pool.py
View file @
fa1a2ed6
from
__future__
import
print_function
from
__future__
import
with_statement
import
sys
import
contextlib
...
...
gevent/fileobject.py
View file @
fa1a2ed6
from
__future__
import
absolute_import
,
with_statement
from
__future__
import
absolute_import
import
sys
import
os
from
gevent.hub
import
get_hub
...
...
gevent/threadpool.py
View file @
fa1a2ed6
# Copyright (c) 2012 Denis Bilenko. See LICENSE for details.
from
__future__
import
with_statement
,
absolute_import
from
__future__
import
absolute_import
import
sys
import
os
from
gevent.hub
import
get_hub
,
getcurrent
,
sleep
,
integer_types
...
...
greentest/greentest.py
View file @
fa1a2ed6
...
...
@@ -20,7 +20,6 @@
# THE SOFTWARE.
# package is named greentest, not test, so it won't be confused with test in stdlib
from
__future__
import
with_statement
import
sys
import
unittest
from
unittest
import
TestCase
as
BaseTestCase
...
...
greentest/lock_tests.py
View file @
fa1a2ed6
"""
Various tests for synchronization primitives.
"""
from
__future__
import
with_statement
import
sys
import
time
from
thread
import
start_new_thread
,
get_ident
...
...
greentest/test__api_timeout.py
View file @
fa1a2ed6
...
...
@@ -19,7 +19,6 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from
__future__
import
with_statement
import
sys
import
greentest
import
weakref
...
...
greentest/test__core_async.py
View file @
fa1a2ed6
from
__future__
import
print_function
from
__future__
import
with_statement
import
gevent
import
gevent.core
import
time
...
...
greentest/test__core_stat.py
View file @
fa1a2ed6
from
__future__
import
print_function
from
__future__
import
with_statement
import
gevent
import
gevent.core
import
os
...
...
greentest/test__example_echoserver.py
View file @
fa1a2ed6
from
__future__
import
with_statement
from
gevent.socket
import
create_connection
,
timeout
from
unittest
import
main
import
gevent
...
...
greentest/test__example_portforwarder.py
View file @
fa1a2ed6
from
__future__
import
print_function
from
__future__
import
with_statement
from
gevent
import
monkey
;
monkey
.
patch_all
()
import
sys
import
socket
...
...
greentest/test__pool.py
View file @
fa1a2ed6
from
__future__
import
with_statement
from
time
import
time
import
gevent
from
gevent
import
pool
...
...
greentest/test__queue.py
View file @
fa1a2ed6
from
__future__
import
with_statement
from
greentest
import
TestCase
,
main
,
GenericGetTestCase
import
gevent
from
gevent.hub
import
get_hub
...
...
greentest/test__sleep0.py
View file @
fa1a2ed6
from
__future__
import
with_statement
import
gevent
from
util
import
alarm
...
...
greentest/test__socket_dns.py
View file @
fa1a2ed6
#!/usr/bin/python
# -*- coding: utf-8 -*-
from
__future__
import
with_statement
import
re
import
greentest
import
socket
...
...
greentest/test__socket_dns6.py
View file @
fa1a2ed6
#!/usr/bin/python
# -*- coding: utf-8 -*-
from
__future__
import
with_statement
import
greentest
import
socket
from
test__socket_dns
import
TestCase
,
add
...
...
greentest/test__threading_vs_settrace.py
View file @
fa1a2ed6
from
__future__
import
print_function
from
__future__
import
with_statement
import
sys
import
subprocess
import
unittest
...
...
greentest/test__threadpool.py
View file @
fa1a2ed6
from
__future__
import
with_statement
import
sys
from
time
import
time
,
sleep
import
random
...
...
greentest/test_hub_join_timeout.py
View file @
fa1a2ed6
from
__future__
import
with_statement
from
contextlib
import
contextmanager
import
gevent
from
gevent.event
import
Event
...
...
greentest/test_queue.py
View file @
fa1a2ed6
# Some simple queue module tests, plus some failure conditions
# to ensure the Queue locks remain stable.
#from __future__ import with_statement
from
gevent
import
monkey
;
monkey
.
patch_all
()
from
gevent
import
queue
as
Queue
import
threading
...
...
greentest/test_threading_2.py
View file @
fa1a2ed6
# testing gevent's Event, Lock, RLock, Semaphore, BoundedSemaphore with standard test_threading
from
__future__
import
print_function
from
__future__
import
with_statement
from
six
import
xrange
setup_
=
'''from gevent import monkey; monkey.patch_all()
...
...
greentest/util.py
View file @
fa1a2ed6
from
__future__
import
with_statement
import
sys
import
os
import
re
...
...
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