Commit 1cacd69c authored by Jason Madden's avatar Jason Madden

In the one example that had an import before gevent.monkey.patch_all(), move...

In the one example that had an import before gevent.monkey.patch_all(), move it up, as is recommended practice. Whitespace in comment.
parent 692e8547
......@@ -3,16 +3,16 @@
"""Spawn multiple workers and wait for them to complete"""
from __future__ import print_function
import sys
urls = ['http://www.google.com', 'http://www.yandex.ru', 'http://www.python.org']
import gevent
from gevent import monkey
# patches stdlib (including socket and ssl modules) to cooperate with other greenlets
monkey.patch_all()
import sys
urls = ['http://www.google.com', 'http://www.yandex.ru', 'http://www.python.org']
if sys.version_info[0] == 3:
from urllib.request import urlopen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment