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

Unified Diff: client/third_party/depot_tools/fix_encoding.py

Issue 1052993003: Roll multiple files from depot_tools into luci. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/third_party/depot_tools/auto_stub.py ('k') | client/third_party/depot_tools/subcommand.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/third_party/depot_tools/fix_encoding.py
diff --git a/client/third_party/depot_tools/fix_encoding.py b/client/third_party/depot_tools/fix_encoding.py
index be5b40efc267e10e41684851ffde67c9bdcf53c2..5da9135818d4c3cb71d09c7dd02441340205aaf1 100644
--- a/client/third_party/depot_tools/fix_encoding.py
+++ b/client/third_party/depot_tools/fix_encoding.py
@@ -1,6 +1,6 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0 that
-# can be found in the LICENSE file.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Collection of functions and classes to fix various encoding problems on
multiple platforms with python.
@@ -229,7 +229,7 @@ class WinUnicodeConsoleOutput(WinUnicodeOutputBase):
remaining -= n.value
if not remaining:
break
- text = text[n.value:]
+ text = text[int(n.value):]
except Exception, e:
complain('%s.write: %r' % (self.name, e))
raise
« no previous file with comments | « client/third_party/depot_tools/auto_stub.py ('k') | client/third_party/depot_tools/subcommand.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698