Skip to content

Commit fdf5298

Browse files
committed
refactor: convert format to f-strings
1 parent a7efd08 commit fdf5298

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fortls/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,17 +526,17 @@ def check_request_params(args, loc_needed=True):
526526
file_exists = os.path.isfile(args.debug_filepath)
527527
if file_exists is False:
528528
error_exit("Specified 'debug_filepath' does not exist")
529-
print(' File = "{}"'.format(args.debug_filepath))
529+
print(f' File = "{args.debug_filepath}"')
530530
if loc_needed:
531531
if args.debug_line is None:
532532
error_exit("'debug_line' not specified for debug request")
533-
print(" Line = {}".format(args.debug_line))
533+
print(f" Line = {args.debug_line}")
534534
if args.debug_char is None:
535535
error_exit("'debug_char' not specified for debug request")
536-
print(" Char = {}\n".format(args.debug_char))
536+
print(f" Char = {args.debug_char}\n")
537537

538538

539539
def print_children(obj, indent=""):
540540
for child in obj.get_children():
541-
print(" {}{}: {}".format(indent, child.get_type(), child.FQSN))
541+
print(f" {indent}{child.get_type()}: {child.FQSN}")
542542
print_children(child, indent + " ")

0 commit comments

Comments
 (0)