8000 Added coveragerc-friendly comments. · github3py/urllib3@ce4c03f · GitHub
[go: up one dir, main page]

Skip to content

Commit ce4c03f

Browse files
committed
Added coveragerc-friendly comments.
1 parent c2139f9 commit ce4c03f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ omit = urllib3/packages/*
55
exclude_lines =
66
.* # Platform-specific.*
77
except ImportError:
8-
.*:.* # Python 3
8+
.*:.* # Python \d.*
99
pass
1010
.* # Abstract

urllib3/connectionpool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,9 @@ def _make_request(self, conn, method, url, timeout=_Default,
258258
if sock:
259259
sock.settimeout(timeout)
260260

261-
try:
262-
# Python 2.7+ added buffering of HTTP responses - use if available.
261+
try: # Python 2.7+, use buffering of HTTP responses
263262
httplib_response = conn.getresponse(buffering=True)
264-
except TypeError:
263+
except TypeError: # Python 2.6 and older
265264
httplib_response = conn.getresponse()
266265

267266
# AppEngine doesn't have a version attr.

0 commit comments

Comments
 (0)
0