Skip to content

Commit e1a3e0f

Browse files
Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 3f9607f commit e1a3e0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/utils/filemanip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ def write_rst_list(items, prefix=""):
719719

720720

721721
def write_rst_dict(info, prefix=""):
722-
out = [f"{prefix}* {key} : {value}" for key, value in sorted(info.items())]
723-
return "\n".join(out) + "\n\n"
722+
return "\n".join(f"{prefix}* {k} : {v}" for k, v in sorted(info.items())) + "\n\n"
724723

725724

726725
def dist_is_editable(dist):

0 commit comments

Comments
 (0)