From c3cd5378193d73db82421f111f581cd15b99c287 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 11 Jul 2012 17:39:24 +0000 Subject: [PATCH] Improve comment added in r145396. R=cmp@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10736011 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@146136 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gclient_utils.py b/gclient_utils.py index 34f3db847..b413a88eb 100644 --- a/gclient_utils.py +++ b/gclient_utils.py @@ -78,7 +78,8 @@ class PrintableObject(object): def FileRead(filename, mode='rU'): with open(filename, mode=mode) as f: - # codecs.open() has different behavior than open() on python 2.6. + # codecs.open() has different behavior than open() on python 2.6 so use + # open() and decode manually. return f.read().decode('utf-8')