add a tool to convert storages to new format

This commit is contained in:
Romain Bignon 2010-07-03 15:01:06 +02:00
commit 5bdd63165d

14
tools/storage_convert.py Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env python
from __future__ import with_statement
import sys
for name in sys.argv[1:]:
with open(name, 'r') as f:
lines = f.readlines()
with open(name, 'w') as f:
f.write('backends:\n')
for line in lines:
f.write(' %s' % line)