Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1650)

Issue 5216044: Sync to head of httplib2. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by jcgregorio_google
Modified:
12 years, 11 months ago
Reviewers:
aiuto
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -3 lines) Patch
M httplib2/__init__.py View 4 chunks +6 lines, -2 lines 0 comments Download
M httplib2/cacerts.txt View 1 chunk +81 lines, -0 lines 0 comments Download
M httplib2/socks.py View 6 chunks +54 lines, -1 line 2 comments Download

Messages

Total messages: 2
jcgregorio_google
12 years, 11 months ago (2011-10-06 18:58:44 UTC) #1
aiuto
12 years, 11 months ago (2011-10-07 03:10:57 UTC) #2
LGTM.

Ignore the comments. I only now realize that you are pulling in someone else's
code,

http://codereview.appspot.com/5216044/diff/1/httplib2/socks.py
File httplib2/socks.py (right):

http://codereview.appspot.com/5216044/diff/1/httplib2/socks.py#newcode170
httplib2/socks.py:170: if (self.__proxy[4] != None and self.__proxy[5] != None):
Oh. so horrible. The self.__proxy[N] with no explanation of the parts.
The   if X != None.

But.. This is consistent with the original style, so I guess it's the best
choice.

http://codereview.appspot.com/5216044/diff/1/httplib2/socks.py#newcode368
httplib2/socks.py:368: headers += ["Host: ", destaddr, "\r\n"]
Can't you write
   headers = [... ... ..
                     "host', ....]
rather than the +=?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b