Fixed an issue in the module parser not recognizing docstrings using r""" or u""".

Wed, 18 Sep 2013 19:48:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 18 Sep 2013 19:48:12 +0200
changeset 2922
16905f0f48be
parent 2921
9e8431cbd2cf
child 2923
01ac1f364b38

Fixed an issue in the module parser not recognizing docstrings using r""" or u""".

Utilities/ModuleParser.py file | annotate | diff | comparison | revisions
--- a/Utilities/ModuleParser.py	Mon Sep 16 19:59:46 2013 +0200
+++ b/Utilities/ModuleParser.py	Wed Sep 18 19:48:12 2013 +0200
@@ -89,16 +89,16 @@
 
 |   (?P<Docstring>
         (?<= :) \s*
-       \""" (?P<DocstringContents1>
+        [ru]? \""" (?P<DocstringContents1>
                 [^"\\]* (?:
                             (?: \\. | "(?!"") )
                             [^"\\]*
                         )*
             )
-       \"""
+        \"""
 
     |   (?<= :) \s*
-        ''' (?P<DocstringContents2>
+        [ru]? ''' (?P<DocstringContents2>
                 [^'\\]* (?:
                             (?: \\. | '(?!'') )
                             [^'\\]*

eric ide

mercurial