Skip to content

Commit

Permalink
Quotes for default string values in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
farizrahman4u committed Dec 15, 2015
1 parent 792b755 commit 54d332b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def get_method_signature(method):
for a in args:
st += str(a) + ', '
for a, v in kwargs:
if type(v) == str:
v = '\'' + v + '\''
elif type(v) == unicode:
v = 'u\'' + v + '\''
st += str(a) + '=' + str(v) + ', '
if kwargs or args:
return st[:-2] + ')'
Expand Down

0 comments on commit 54d332b

Please sign in to comment.