Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Issue 10698089: The previous fix r145315 seems to have broken python 2.6.2 on Windows users. (Closed)

Created:
8 years, 5 months ago by M-A Ruel
Modified:
8 years, 5 months ago
Reviewers:
cmp, Munjal (Google)
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, Munjal (Google), noelallen1
Visibility:
Public.

Description

The previous fix r145315 seems to have broken python 2.6.2 on Windows users. Since open() and codecs.open() have different behavior, and codecs.open() misbehaves on python 2.6, switch to open() with manual str decoding. TBR=cmp@chromium.org BUG= TEST=I failed to reproduce, it's a shot in the dark Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145396

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -6 lines) Patch
M gclient_utils.py View 1 chunk +3 lines, -6 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
M-A Ruel
8 years, 5 months ago (2012-07-03 23:03:22 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10698089/1
8 years, 5 months ago (2012-07-03 23:03:35 UTC) #2
commit-bot: I haz the power
Change committed as 145396
8 years, 5 months ago (2012-07-03 23:06:25 UTC) #3
Munjal (Google)
Thanks for fixing this quickly.
8 years, 5 months ago (2012-07-09 19:30:34 UTC) #4
cmp
8 years, 5 months ago (2012-07-10 01:27:01 UTC) #5
lgtm with nit

probably entering decode()-land may help to add a test somewhere to verify the
right thing happens to convert a unicode string into a utf-8 string.

https://chromiumcodereview.appspot.com/10698089/diff/1/gclient_utils.py
File gclient_utils.py (right):

https://chromiumcodereview.appspot.com/10698089/diff/1/gclient_utils.py#newco...
gclient_utils.py:81: # codecs.open() has different behavior than open() on
python 2.6.
since you're no longer calling codecs.open(), this comment seems misplaced.  my
assumption is that the comment was about the 'replace' call in the previous CL,
and that it's no longer relevant?

Powered by Google App Engine
This is Rietveld 408576698