summaryrefslogtreecommitdiff
path: root/Lib/urllib/response.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib/response.py')
-rw-r--r--Lib/urllib/response.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib/response.py b/Lib/urllib/response.py
index 1352622e31..52eeed0f70 100644
--- a/Lib/urllib/response.py
+++ b/Lib/urllib/response.py
@@ -17,7 +17,8 @@ class addbase(object):
self.read = self.fp.read
self.readline = self.fp.readline
# TODO(jhylton): Make sure an object with readlines() is also iterable
- if hasattr(self.fp, "readlines"): self.readlines = self.fp.readlines
+ if hasattr(self.fp, "readlines"):
+ self.readlines = self.fp.readlines
if hasattr(self.fp, "fileno"):
self.fileno = self.fp.fileno
else: