Skip to content

Commit

Permalink
fix constants declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Aug 31, 2019
1 parent e903c1a commit 23877ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpkit/tools/docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def vv_declare(string, flag, idx2, countstr):
# pylint: disable=unused-argument
def constant_declare(string, flag, idx2, countstr):
"Turns Variable declarations into Constant ones"
return countstr.replace("')", "', constant=True)")
return countstr.replace('")', '", constant=True)')


# pylint: disable=too-many-locals
Expand Down

0 comments on commit 23877ae

Please sign in to comment.