fixed some problems with new dal and SQLHTML

This commit is contained in:
mdipierro
2015-01-27 00:16:45 -06:00
parent 89c5668366
commit 5da5d510a0
3 changed files with 10 additions and 7 deletions
+8 -5
View File
@@ -57,8 +57,11 @@ def read_file(filename):
finally:
f.close()
file = sys.argv[1]
if file[-4:] == '.css':
print cleancss(read_file(file))
if file[-5:] == '.html':
print cleanhtml(read_file(file))
for file in sys.argv[1:]:
data = read_file(file)
open(file+'.bak2', 'w').write(data)
if file[-4:] == '.css':
data = cleancss(data)
if file[-5:] == '.html':
data = cleanhtml(data)
open(file, 'w').write(data)