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

Issue 6490072: Fix HTTP 403 error on python 2.7 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by M-A
Modified:
12 years, 7 months ago
Reviewers:
gvrpython, Andi, GvR
CC:
codereview-discuss_googlegroups.com, Roger Tawa
Visibility:
Public.

Description

Fix HTTP 403 error on python 2.7 On python 2.7, urllib2.HTTPError.reason is a property and not a variable, so assignment is disallowed. Commenting out the line works just fine.

Patch Set 1 #

Patch Set 2 : Make it compatible with python 2.6 and 2.7 #

Patch Set 3 : Now verified to work on python 2.6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M upload.py View 1 2 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 7
M-A
12 years, 7 months ago (2012-09-03 15:38:12 UTC) #1
Andi
Adding Guido since I'm not very familiar with Google's authentication mechanism. In AbstractRpcServer._GetAuthToken() we're reading ...
12 years, 7 months ago (2012-09-03 16:08:32 UTC) #2
M-A
On 2012/09/03 16:08:32, Andi wrote: > Adding Guido since I'm not very familiar with Google's ...
12 years, 7 months ago (2012-09-03 16:44:08 UTC) #3
gvrpython
I'm confused. Where in the Python 2.7 stdlib is reason made a property? On Mon, ...
12 years, 7 months ago (2012-09-04 07:02:24 UTC) #4
Andi
It seems to be this issue: http://bugs.python.org/issue13211 -- Andi On Tue, Sep 4, 2012 at ...
12 years, 7 months ago (2012-09-04 07:09:31 UTC) #5
gvrpython
Gotcha. LGTM! On Tue, Sep 4, 2012 at 9:09 AM, Andi Albrecht <albrecht.andi@gmail.com> wrote: > ...
12 years, 7 months ago (2012-09-04 09:23:03 UTC) #6
Andi
12 years, 7 months ago (2012-09-04 09:46:20 UTC) #7
oh, I didn't notice the new changeset. LGTM too!
Sign in to reply to this message.

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