cpython: d4aeeddf72e3 (original) (raw)

Mercurial > cpython

changeset 70997:d4aeeddf72e3

Issue #4608: urllib.request.urlopen does not return an iterable object [#4608]

Raymond Hettinger python@rcn.com
date Sun, 26 Jun 2011 14:30:25 +0200
parents b879bad40154(current diff)c0a68b948f5d(diff)
children fcf242243d46
files Lib/test/test_urllib.py Lib/urllib/response.py Misc/ACKS
diffstat 3 files changed, 12 insertions(+), 6 deletions(-)[+] [-] Lib/test/test_urllib.py 5 Lib/urllib/response.py 12 Misc/ACKS 1

line wrap: on

line diff

--- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -110,8 +110,9 @@ class urlopen_FileTests(unittest.TestCas # Test iterator # Don't need to count number of iterations since test would fail the # instant it returned anything beyond the first line from the

class ProxyTests(unittest.TestCase):

--- a/Lib/urllib/response.py +++ b/Lib/urllib/response.py @@ -23,10 +23,14 @@ class addbase(object): self.fileno = self.fp.fileno else: self.fileno = lambda: None

+

def repr(self): return '<%s at %r whose fp = %r>' % (self.class.name,

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -325,6 +325,7 @@ Lele Gaifax Santiago Gala Yitzchak Gale Quentin Gallet-Gilles +Riccardo Attilio Galli Raymund Galvin Nitin Ganatra Fred Gansevles