Skip to content

Commit 85d040d

Browse files
committed
fix a broken call to command_to_lines in cmake_pprint
1 parent 51a5aa5 commit 85d040d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmakelists_parsing/parsing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def compose_lines(tree):
7979
level += 1
8080

8181
# FIXME: Make this split into more lines if the result would be too wide.
82-
def command_to_lines(cmd, sep=' '):
82+
def command_to_lines(cmd):
83+
sep = ' '
8384
final_paren = ')' if cmd.body and cmd.body[-1].comments else ')'
8485
comment_part = ' ' + cmd.comment if cmd.comment else ''
8586
result = cmd.name + '(' + sep.join(map(arg_to_str, cmd.body)) + final_paren + comment_part

0 commit comments

Comments
 (0)