[Lldb-commits] [lldb] r134775 - /lldb/trunk/scripts/Python/modify-python-lldb.py

Johnny Chen johnny.chen at apple.com
Fri Jul 8 16:57:20 PDT 2011


Author: johnny
Date: Fri Jul  8 18:57:20 2011
New Revision: 134775

URL: http://llvm.org/viewvc/llvm-project?rev=134775&view=rev
Log:
Missed the char_to_str_xform on the docstrings for the module level function definitions.

Modified:
    lldb/trunk/scripts/Python/modify-python-lldb.py

Modified: lldb/trunk/scripts/Python/modify-python-lldb.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modify-python-lldb.py?rev=134775&r1=134774&r2=134775&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Fri Jul  8 18:57:20 2011
@@ -52,7 +52,9 @@
 #
 # 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.





More information about the lldb-commits mailing list