summaryrefslogtreecommitdiff
path: root/examples/feedscraper-testclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/feedscraper-testclient.py')
-rw-r--r--examples/feedscraper-testclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/feedscraper-testclient.py b/examples/feedscraper-testclient.py
index b68da8d..601f12a 100644
--- a/examples/feedscraper-testclient.py
+++ b/examples/feedscraper-testclient.py
@@ -1,4 +1,4 @@
-from eventlet.green import urllib2
+from eventlet.green.urllib.request import urlopen
big_list_of_feeds = """
http://blog.eventlet.net/feed/
@@ -21,5 +21,5 @@ http://ln.hixie.ch/rss/html
"""
url = 'http://localhost:9010/'
-result = urllib2.urlopen(url, big_list_of_feeds)
+result = urlopen(url, big_list_of_feeds)
print(result.read())