delete deprecated method

This commit is contained in:
saga92 2016-04-20 19:58:43 +08:00
parent 4d9d46ffc4
commit c4015355ce

View File

@ -57,7 +57,7 @@ if not os.path.exists(db_config_dir):
os.makedirs(os.path.join(config_dir, "db"))
def render(src, dest, **kw):
t = Template(open(src, 'r').read().strip('echo').strip().strip('"'))
t = Template(open(src, 'r').read())
with open(dest, 'w') as f:
f.write(t.substitute(**kw))
print("Generated configuration file: %s" % dest)