[Assorted-commits] SF.net SVN: assorted:[1106] python-commons/trunk/src/commons/interp.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-12-19 23:44:15
|
Revision: 1106 http://assorted.svn.sourceforge.net/assorted/?rev=1106&view=rev Author: yangzhang Date: 2008-12-19 23:44:11 +0000 (Fri, 19 Dec 2008) Log Message: ----------- updated for 2.6 Modified Paths: -------------- python-commons/trunk/src/commons/interp.py Modified: python-commons/trunk/src/commons/interp.py =================================================================== --- python-commons/trunk/src/commons/interp.py 2008-12-19 23:23:56 UTC (rev 1105) +++ python-commons/trunk/src/commons/interp.py 2008-12-19 23:44:11 UTC (rev 1106) @@ -56,14 +56,14 @@ @license: MIT """ - pattern = re.compile(r""" + pattern = r""" \$(?: (?P<escaped>\$) | # Escape sequence of two delimiters (?P<named>[_a-z][_a-z0-9]*) | # delimiter and a Python identifier {(?P<braced>.*?)} | # delimiter and a braced identifier (?P<invalid>) # Other ill-formed delimiter exprs ) - """, re.VERBOSE | re.IGNORECASE) + """ def interp(s, dic = None): """ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |