Skip to content

Commit

Permalink
Bug 752658 - XML empty <argsstring/> in python
Browse files Browse the repository at this point in the history
Problem comes from the fact that the last argument has a default value and in this case the routine argListToString is mot called as it is done in case of ')' after an argument without default value (see section "FunctionParams").
  • Loading branch information
albert-github committed Jul 25, 2015
1 parent 45e153f commit a1b3f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyscanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,9 @@ STARTDOCSYMS "##"
{
current->argList->getLast()->defval=g_defVal.stripWhiteSpace();
}
BEGIN(FunctionParams);
if (*yytext == ')')
current->args = argListToString(current->argList);
BEGIN(FunctionParams);
}
else // continue
{
Expand Down

0 comments on commit a1b3f7b

Please sign in to comment.