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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
index 01c8fe50a12c0c38b34d2385f3d7b3ba52a9c787..8136484ab3489e744b9bcdddfa4bccc1373e80d1 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
@@ -110,7 +110,7 @@ class PlatformInfo(object):
# Note that we return 1 less than the width since writing into the rightmost column
# automatically performs a line feed.
return right - left
- return sys.maxint
+ return sys.maxsize
else:
import fcntl
import struct
@@ -119,7 +119,7 @@ class PlatformInfo(object):
_, columns, _, _ = struct.unpack('HHHH', packed)
return columns
except:
- return sys.maxint
+ return sys.maxsize
def linux_distribution(self):
if not self.is_linux():

Powered by Google App Engine
This is Rietveld 408576698