add a tool to convert storages to new format
This commit is contained in:
parent
be9f3f60e4
commit
5bdd63165d
1 changed files with 14 additions and 0 deletions
14
tools/storage_convert.py
Executable file
14
tools/storage_convert.py
Executable 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue