fixed some problems with new dal and SQLHTML

This commit is contained in:
mdipierro committed 2015-01-27 00:16:45 -06:00
1 parent 89c5668366
commit 5da5d510a0
3 files changed
+10 -7

No files matched your search

+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)