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

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

Issue 2578213005: Use underscores to separate words in filenames in webkitpy. (Closed)
Patch Set: Fix check for attribute in output_capture.py. Created 4 years 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/platform_info.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platform_info.py
similarity index 96%
rename from third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
rename to third_party/WebKit/Tools/Scripts/webkitpy/common/system/platform_info.py
index f2222f92ac37dcef6a55a96878bc62e3fdc2d273..860fcd6a255eb623eb7e60675e7cc68fcb72fa69 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platforminfo.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/platform_info.py
@@ -118,7 +118,7 @@ class PlatformInfo(object):
packed = fcntl.ioctl(sys.stderr.fileno(), termios.TIOCGWINSZ, '\0' * 8)
_, columns, _, _ = struct.unpack('HHHH', packed)
return columns
- except:
+ except Exception: # pylint: disable=broad-except
return sys.maxsize
def linux_distribution(self):
@@ -171,9 +171,10 @@ class PlatformInfo(object):
return 'vista'
if win_version_tuple[:2] == (5, 1):
return 'xp'
- assert (win_version_tuple[0] > 10 or
- win_version_tuple[0] == 10 and win_version_tuple[1] > 0), (
- 'Unrecognized Windows version tuple: "%s"' % (win_version_tuple,))
+ assert (
+ win_version_tuple[0] > 10 or
+ win_version_tuple[0] == 10 and win_version_tuple[1] > 0), (
+ 'Unrecognized Windows version tuple: "%s"' % (win_version_tuple,))
return 'future'
def _win_version_tuple(self, sys_module):

Powered by Google App Engine
This is Rietveld 408576698