Skip to content

Commit 69768ba

Browse files
Merge pull request #2532 from practicalswift/pep8-round
[gardening] Fix recently introduced PEP-8 issues.
2 parents 3018eeb + 108f49e commit 69768ba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

utils/backtrace-check

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
# 11 libswiftCore.dylib 0x000000000dce84d0l _fatalErrorMessage(StaticString,
1919
# StaticString, StaticString, UInt, flags : UInt32) -> () + 444
2020

21-
import sys
22-
import os
2321
import re
22+
import sys
2423

2524
TARGET_RE = re.compile(
2625
"(?P<index>\d+) +(?P<object>\S+) +(?P<address>0x[0-9a-fA-F]{16}) "

utils/update-checkout

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ SWIFT_3_0_PREVIEW_1_BRANCHES = {
6868
'compiler-rt': 'swift-3.0-branch',
6969
}
7070

71+
7172
def update_working_copy(repo_path, branch):
7273
if not os.path.isdir(repo_path):
7374
return
@@ -112,7 +113,7 @@ def obtain_additional_swift_sources(
112113
if branch == "stable-next" or branch == "master-next":
113114
repo_branch = NEXT_BRANCHES[dir_name]
114115
elif branch == "swift-3.0-branch" or \
115-
branch == "swift-3.0-preview-1-branch":
116+
branch == "swift-3.0-preview-1-branch":
116117
repo_branch = SWIFT_3_0_PREVIEW_1_BRANCHES[dir_name]
117118
else:
118119
repo_branch = branch
@@ -171,8 +172,8 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
171172
if branch == "stable-next" or branch == "master-next":
172173
repo_branch = NEXT_BRANCHES[dir_name]
173174
elif branch == "swift-3.0-branch" or \
174-
branch == "swift-3.0-preview-1-branch":
175-
repo_branch = SWIFT_3_0_PREVIEW_1_BRANCHES[dir_name]
175+
branch == "swift-3.0-preview-1-branch":
176+
repo_branch = SWIFT_3_0_PREVIEW_1_BRANCHES[dir_name]
176177

177178
update_working_copy(os.path.join(SWIFT_SOURCE_ROOT, dir_name),
178179
repo_branch)

0 commit comments

Comments
 (0)