[pypy-svn] r66700 - pypy/trunk/pypy/module/sys

arigo at codespeak.net arigo at codespeak.net
Thu Jul 30 16:28:35 CEST 2009


Author: arigo
Date: Thu Jul 30 16:28:33 2009
New Revision: 66700

Modified:
   pypy/trunk/pypy/module/sys/version.py
Log:
Protect these '$'-expanded strings in triple-quotes, in case svn expands
them to something containing a single or double quote.  For example in
the Herbrew locale a date can contain a single-quote.


Modified: pypy/trunk/pypy/module/sys/version.py
==============================================================================
--- pypy/trunk/pypy/module/sys/version.py	(original)
+++ pypy/trunk/pypy/module/sys/version.py	Thu Jul 30 16:28:33 2009
@@ -11,9 +11,9 @@
 # the last item is replaced by the svn revision ^^^
 
 TRIM_URL_UP_TO = 'svn/pypy/'
-SVN_URL = "$HeadURL$"[10:-28]
+SVN_URL = """$HeadURL$"""[10:-28]
 
-REV = "$LastChangedRevision$"[22:-2]
+REV = """$LastChangedRevision$"""[22:-2]
 
 
 import pypy



More information about the Pypy-commit mailing list