Skip to content

Commit b75f284

Browse files
Remove redundant backslashes.
1 parent 98d9044 commit b75f284

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tools/SourceKit/bindings/python/sourcekitd/capi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class Config:
540540
def set_library_path(path):
541541
"""Set the path in which to search for sourcekitd"""
542542
if Config.loaded:
543-
raise Exception("library path must be set before before using " \
543+
raise Exception("library path must be set before before using "
544544
"any other functionalities in sourcekitd.")
545545

546546
Config.library_path = path
@@ -549,7 +549,7 @@ def set_library_path(path):
549549
def set_library_file(filename):
550550
"""Set the exact location of sourcekitd"""
551551
if Config.loaded:
552-
raise Exception("library file must be set before before using " \
552+
raise Exception("library file must be set before before using "
553553
"any other functionalities in sourcekitd.")
554554

555555
Config.library_file = filename

utils/GYBUnicodeDataUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def create_tables(self):
248248
# maximum Unicode code point value is not 2^21-1 (0x1fffff), it is
249249
# 0x10ffff.
250250
self.supp_first_level_index_max = \
251-
0x10ffff >> (self.supp_second_level_index_bits + \
251+
0x10ffff >> (self.supp_second_level_index_bits +
252252
self.supp_data_offset_bits)
253253

254254
# A mapping from BMP first-level index to BMP data block index.

utils/SwiftBuildSupport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def _get_preset_options_impl(config, substitutions, preset_name):
155155
# Split on newlines and filter out empty lines.
156156
mixins = filter(None, [m.strip() for m in a.splitlines()])
157157
for mixin in mixins:
158-
(base_build_script_opts, \
159-
base_build_script_impl_opts, \
158+
(base_build_script_opts,
159+
base_build_script_impl_opts,
160160
base_missing_opts) = \
161161
_get_preset_options_impl(config, substitutions, mixin)
162162
build_script_opts += base_build_script_opts
@@ -187,7 +187,7 @@ def get_preset_options(substitutions, preset_file_names, preset_name):
187187
print_with_argv0("preset '" + preset_name + "' not found")
188188
sys.exit(1)
189189
if missing_opts:
190-
print_with_argv0("missing option(s) for preset '" + preset_name + \
190+
print_with_argv0("missing option(s) for preset '" + preset_name +
191191
"': " + ", ".join(missing_opts))
192192
sys.exit(1)
193193

utils/viewcfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@ def main():
143143
outFile.write('digraph "CFG" {\n')
144144
for name, block in blocks.iteritems():
145145
if block.content is not None:
146-
outFile.write("\tNode" + str(block.index) + \
146+
outFile.write("\tNode" + str(block.index) +
147147
" [shape=record,label=\"{" + block.content + "}\"];\n")
148148
else:
149-
outFile.write("\tNode" + str(block.index) + \
150-
" [shape=record,color=gray,fontcolor=gray,label=\"{" + \
149+
outFile.write("\tNode" + str(block.index) +
150+
" [shape=record,color=gray,fontcolor=gray,label=\"{" +
151151
block.name + "}\"];\n")
152152

153153
for succName in block.getSuccs():
154154
succBlock = blocks[succName]
155-
outFile.write("\tNode" + str(block.index) + " -> Node" + \
155+
outFile.write("\tNode" + str(block.index) + " -> Node" +
156156
str(succBlock.index) + ";\n")
157157

158158
outFile.write("}\n")

0 commit comments

Comments
 (0)