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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.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: 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/filesystem.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py
index d00bef71619bc61602d714572779c9541cdfd21b..cc40de02ca040a77535cb97507a18d36b3411e59 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py
@@ -41,6 +41,7 @@ import time
class FileSystem(object):
+
"""FileSystem interface for webkitpy.
Unless otherwise noted, all paths are allowed to be either absolute
@@ -172,7 +173,7 @@ class FileSystem(object):
"""Create the specified directory if it doesn't already exist."""
try:
os.makedirs(self.join(*path))
- except OSError, e:
+ except OSError as e:
if e.errno != errno.EEXIST:
raise
@@ -235,6 +236,7 @@ class FileSystem(object):
return os.path.relpath(path, start)
class _WindowsError(exceptions.OSError):
+
"""Fake exception for Linux and Mac."""
pass
@@ -254,7 +256,7 @@ class FileSystem(object):
try:
osremove(path)
return True
- except exceptions.WindowsError, e:
+ except exceptions.WindowsError as e:
time.sleep(sleep_interval)
retry_timeout_sec -= sleep_interval
if retry_timeout_sec < 0:

Powered by Google App Engine
This is Rietveld 408576698