From 54d332bf639bb77be39c46dbeac511c9d6582f8b Mon Sep 17 00:00:00 2001 From: Fariz Rahman Date: Tue, 15 Dec 2015 23:02:20 +0530 Subject: [PATCH] Quotes for default string values in docs --- docs/autogen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/autogen.py b/docs/autogen.py index c62df2f9f..3b99b854d 100644 --- a/docs/autogen.py +++ b/docs/autogen.py @@ -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] + ')'