use a tuple of URLs that do not 404
This commit is contained in:
@@ -8,13 +8,16 @@ The prints in the body of the fetch function are there to demonstrate that the
|
|||||||
requests are truly made in parallel.
|
requests are truly made in parallel.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
urls = ["http://www.google.com/intl/en_ALL/images/logo.gif",
|
urls = (
|
||||||
"https://wiki.secondlife.com/w/images/secondlife.jpg",
|
"https://www.google.com/intl/en_ALL/images/logo.gif",
|
||||||
"http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif"]
|
"http://python.org/images/python-logo.gif",
|
||||||
|
"http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif"
|
||||||
|
)
|
||||||
|
|
||||||
import eventlet
|
import eventlet
|
||||||
from eventlet.green import urllib2
|
from eventlet.green import urllib2
|
||||||
|
|
||||||
|
|
||||||
def fetch(url):
|
def fetch(url):
|
||||||
print "opening", url
|
print "opening", url
|
||||||
body = urllib2.urlopen(url).read()
|
body = urllib2.urlopen(url).read()
|
||||||
|
Reference in New Issue
Block a user