| 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:
|
|
|