Ran YAPF on YAPF.
diff --git a/yapf/yapflib/file_resources.py b/yapf/yapflib/file_resources.py
index 021764e..063161b 100644
--- a/yapf/yapflib/file_resources.py
+++ b/yapf/yapflib/file_resources.py
@@ -121,7 +121,8 @@
# TODO(morbo): Look into a version of os.walk that can handle recursion.
python_files.extend(
os.path.join(dirpath, f)
- for dirpath, _, filelist in os.walk(filename) for f in filelist
+ for dirpath, _, filelist in os.walk(filename)
+ for f in filelist
if IsPythonFile(os.path.join(dirpath, f)))
else:
raise errors.YapfError(
diff --git a/yapf/yapflib/pytree_unwrapper.py b/yapf/yapflib/pytree_unwrapper.py
index 31df6b9..68248ab 100644
--- a/yapf/yapflib/pytree_unwrapper.py
+++ b/yapf/yapflib/pytree_unwrapper.py
@@ -333,7 +333,8 @@
if not _ContainsComments(node):
token = next(node.parent.leaves())
if token.value == '(':
- if sum(1 for ch in node.children
+ if sum(1
+ for ch in node.children
if pytree_utils.NodeName(ch) == 'COMMA') < 2:
return
if (not isinstance(node.children[-1], pytree.Leaf) or
diff --git a/yapftests/pytree_unwrapper_test.py b/yapftests/pytree_unwrapper_test.py
index ab634a5..03a93f0 100644
--- a/yapftests/pytree_unwrapper_test.py
+++ b/yapftests/pytree_unwrapper_test.py
@@ -34,7 +34,8 @@
actual = []
for uwl in uwlines:
filtered_values = [
- ft.value for ft in uwl.tokens
+ ft.value
+ for ft in uwl.tokens
if ft.name not in pytree_utils.NONSEMANTIC_TOKENS
]
actual.append((uwl.depth, filtered_values))
@@ -299,7 +300,8 @@
"""
actual = []
for uwl in uwlines:
- filtered_values = [(ft, ft.matching_bracket) for ft in uwl.tokens
+ filtered_values = [(ft, ft.matching_bracket)
+ for ft in uwl.tokens
if ft.name not in pytree_utils.NONSEMANTIC_TOKENS]
if filtered_values:
actual.append(filtered_values)
diff --git a/yapftests/subtype_assigner_test.py b/yapftests/subtype_assigner_test.py
index 746b8c8..9dd1050 100644
--- a/yapftests/subtype_assigner_test.py
+++ b/yapftests/subtype_assigner_test.py
@@ -34,7 +34,8 @@
"""
actual = []
for uwl in uwlines:
- filtered_values = [(ft.value, ft.subtypes) for ft in uwl.tokens
+ filtered_values = [(ft.value, ft.subtypes)
+ for ft in uwl.tokens
if ft.name not in pytree_utils.NONSEMANTIC_TOKENS]
if filtered_values:
actual.append(filtered_values)