Package commons :: Module interp :: Class LaxTemplate
[hide private]
[frames] | no frames]

Class LaxTemplate

source code

     object --+    
              |    
string.Template --+
                  |
                 LaxTemplate

From PythonPaste paste.script. This change of pattern allows for anything in braces, but only identifiers outside of braces.


Copyright: Ian Bicking

License: MIT

Nested Classes [hide private]

Inherited from string.Template: __metaclass__

Instance Methods [hide private]

Inherited from string.Template: __init__, safe_substitute, substitute

Inherited from string.Template (private): _invalid

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  pattern = re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>[_a...

Inherited from string.Template: delimiter, idpattern

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

pattern

Value:
re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>[_a-z][_a-z0-9]*)|\{(\
?P<braced>.*?)\}|(?P<invalid>))')