Skip to content

Commit 1669818

Browse files
committed
Polish code style
1 parent b9c766d commit 1669818

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.gdbinit

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,12 +675,17 @@ class Dashboard(gdb.Command):
675675
@staticmethod
676676
def create_command(name, invoke, doc, is_prefix, complete=None):
677677
if callable(complete):
678-
Class = type('', (gdb.Command,), {'invoke': invoke,
679-
'complete': complete,
680-
'__doc__': doc})
678+
Class = type('', (gdb.Command,), {
679+
'__doc__': doc
680+
'invoke': invoke,
681+
'complete': complete
682+
})
681683
Class(name, gdb.COMMAND_USER, prefix=is_prefix)
682684
else:
683-
Class = type('', (gdb.Command,), {'invoke': invoke, '__doc__': doc})
685+
Class = type('', (gdb.Command,), {
686+
'__doc__': doc,
687+
'invoke': invoke
688+
})
684689
Class(name, gdb.COMMAND_USER, complete or gdb.COMPLETE_NONE, is_prefix)
685690

686691
@staticmethod

0 commit comments

Comments
 (0)