Mercurial > ~astiob > upreckon > hgweb
view publish.py @ 19:d4fc9341664e 1.20.2
Fixed an exception when tests.zip contained test cases in its root
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 13 Jun 2010 12:46:49 +0000 |
parents | a2c9f7cfa174 |
children |
line wrap: on
line source
#! /usr/bin/python # Copyright (c) 2009-2010 Chortos-2 <chortos@inbox.lv> with open('test-svn.py') as t: f = t.read() i = f.find('# $Rev: ') j = f.find('\n', i) 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: t.write(f)