[Checkins] SVN:	Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py	Catch both single- and double quotes when looking for a	source-code annotation.
    Malthe Borch 
    mborch at gmail.com
       
    Thu Nov 27 06:00:09 EST 2008
    
    
  
Log message for revision 93386:
  Catch both single- and double quotes when looking for a source-code annotation.
Changed:
  U   Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
-=-
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py	2008-11-27 10:53:56 UTC (rev 93385)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py	2008-11-27 11:00:08 UTC (rev 93386)
@@ -34,7 +34,7 @@
     '<!ENTITY %s "&#%s;">' % (name, text) for (name, text) in \
     htmlentitydefs.name2codepoint.items()))
 
-re_annotation = re.compile(r'^\s*u?\'(.*)\'$')
+re_annotation = re.compile(r'^\s*u?[\'"](.*)[\'"]$')
 
 s_counter = 0
 marker = object()
    
    
More information about the Checkins
mailing list