diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-08 23:57:20 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-08 23:57:20 +0000 |
commit | 02a07299b7eb67fff2603cfb228b1933a88f9954 (patch) | |
tree | a652f9e4210e603172f245ad862224df5dc0331d /lldb/scripts/Python/modify-python-lldb.py | |
parent | a7c941181868fb5c15cbb68131c7061aa55803a9 (diff) | |
download | llvm-02a07299b7eb67fff2603cfb228b1933a88f9954.zip llvm-02a07299b7eb67fff2603cfb228b1933a88f9954.tar.gz llvm-02a07299b7eb67fff2603cfb228b1933a88f9954.tar.bz2 |
Missed the char_to_str_xform on the docstrings for the module level function definitions.
llvm-svn: 134775
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 2e2c8be..139d981 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -52,7 +52,9 @@ def char_to_str_xform(line): # # The one-liner docstring also needs char_to_str transformation, btw. # -one_liner_docstring_pattern = re.compile('^ """.*"""$') +TWO_SPACES = ' ' * 2 +EIGHT_SPACES = ' ' * 8 +one_liner_docstring_pattern = re.compile('^(%s|%s)""".*"""$' % (TWO_SPACES, EIGHT_SPACES)) # # lldb_iter() should appear before our first SB* class definition. |