# HG changeset patch # User Oleg Oshmyan # Date 1268438448 0 # Node ID a2c9f7cfa174faa080233c039102611e82fc0eb6 # Parent 7c6f02865bf63102fd2351ab493b470bb665622f $Rev$ substitution still diff -r 7c6f02865bf6 -r a2c9f7cfa174 publish.py --- a/publish.py Sat Mar 13 00:00:07 2010 +0000 +++ b/publish.py Sat Mar 13 00:00:48 2010 +0000 @@ -5,7 +5,7 @@ f = t.read() i = f.find('# $Rev: ') j = f.find('\n', i) -rev = f[i+8:j-1] +rev = f[i+8:j-2] f = f[0:i] + f[j+1:] f = f.replace('$$REV$$', rev) with open('test.py', 'wb') as t: