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

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

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
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 fdf43473b1384eab7642d710ba827835e8ecbb9f..d00bef71619bc61602d714572779c9541cdfd21b 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py
@@ -39,6 +39,7 @@ import sys
import tempfile
import time
+
class FileSystem(object):
"""FileSystem interface for webkitpy.
@@ -147,6 +148,7 @@ class FileSystem(object):
methods. If you need a string, coerce the object to a string and go from there.
"""
class TemporaryDirectory(object):
+
def __init__(self, **kwargs):
self._kwargs = kwargs
self._directory_path = tempfile.mkdtemp(**self._kwargs)
@@ -203,7 +205,9 @@ class FileSystem(object):
def open_text_file_for_reading(self, path):
# Note: There appears to be an issue with the returned file objects
- # not being seekable. See http://stackoverflow.com/questions/1510188/can-seek-and-tell-work-with-utf-8-encoded-documents-in-python .
+ # not being seekable. See
+ # http://stackoverflow.com/questions/1510188/can-seek-and-tell-work-with-utf-8-encoded-documents-in-python
+ # .
return codecs.open(path, 'r', 'utf8')
def open_text_file_for_writing(self, path):

Powered by Google App Engine
This is Rietveld 408576698