cpython: c0a68b948f5d (original) (raw)

Mercurial > cpython

changeset 70996:c0a68b948f5d 3.2

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

Raymond Hettinger python@rcn.com
date Sun, 26 Jun 2011 14:29:35 +0200
parents f852e2d556af
children d4aeeddf72e3 1ed71544fceb
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 @@ -309,6 +309,7 @@ Lele Gaifax Santiago Gala Yitzchak Gale Quentin Gallet-Gilles +Riccardo Attilio Galli Raymund Galvin Nitin Ganatra Fred Gansevles