Skip to content

Commit 266ef88

Browse files
committed
pep8 prefers triple quoted with double quotes
1 parent f7811c1 commit 266ef88

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/etc/debugger_pretty_printers_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def extract_length_and_ptr_from_slice(slice_val):
328328
UNQUALIFIED_TYPE_MARKERS = frozenset(["(", "[", "&", "*"])
329329

330330
def extract_type_name(qualified_type_name):
331-
'''Extracts the type name from a fully qualified path'''
331+
"""Extracts the type name from a fully qualified path"""
332332
if qualified_type_name[0] in UNQUALIFIED_TYPE_MARKERS:
333333
return qualified_type_name
334334

src/etc/lldb_batchmode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737

3838

3939
def print_debug(s):
40-
"Print something if DEBUG_OUTPUT is True"
40+
"""Print something if DEBUG_OUTPUT is True"""
4141
global DEBUG_OUTPUT
4242
if DEBUG_OUTPUT:
4343
print("DEBUG: " + str(s))
4444

4545

4646
def normalize_whitespace(s):
47-
"Replace newlines, tabs, multiple spaces, etc with exactly one space"
47+
"""Replace newlines, tabs, multiple spaces, etc with exactly one space"""
4848
return re.sub("\s+", " ", s)
4949

5050

@@ -71,7 +71,7 @@ def breakpoint_callback(frame, bp_loc, dict):
7171

7272

7373
def execute_command(command_interpreter, command):
74-
"Executes a single CLI command"
74+
"""Executes a single CLI command"""
7575
global new_breakpoints
7676
global registered_breakpoints
7777

src/etc/lldb_rust_formatters.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def print_val(lldb_val, internal_dict):
171171
#=--------------------------------------------------------------------------------------------------
172172

173173
def print_struct_val(val, internal_dict, omit_first_field, omit_type_name, is_tuple_like):
174-
'''
174+
"""
175175
Prints a struct, tuple, or tuple struct value with Rust syntax.
176176
Ignores any fields before field_start_index.
177-
'''
177+
"""
178178
assert val.type.get_dwarf_type_kind() == rustpp.DWARF_TYPE_CODE_STRUCT
179179

180180
if omit_type_name:
@@ -221,7 +221,7 @@ def render_child(child_index):
221221
"body": body}
222222

223223
def print_pointer_val(val, internal_dict):
224-
'''Prints a pointer value with Rust syntax'''
224+
"""Prints a pointer value with Rust syntax"""
225225
assert val.type.get_dwarf_type_kind() == rustpp.DWARF_TYPE_CODE_PTR
226226
sigil = "&"
227227
type_name = val.type.get_unqualified_type_name()
@@ -275,8 +275,8 @@ def print_std_string_val(val, internal_dict):
275275
#=--------------------------------------------------------------------------------------------------
276276

277277
def print_array_of_values(array_name, data_ptr_val, length, internal_dict):
278-
'''Prints a contigous memory range, interpreting it as values of the
279-
pointee-type of data_ptr_val.'''
278+
"""Prints a contigous memory range, interpreting it as values of the
279+
pointee-type of data_ptr_val."""
280280

281281
data_ptr_type = data_ptr_val.type
282282
assert data_ptr_type.get_dwarf_type_kind() == rustpp.DWARF_TYPE_CODE_PTR

0 commit comments

Comments
 (0)