Use str not unicode in minification
This commit is contained in:
1 parent
f087d38b86
commit
6c6f015f40
1 file changed
+1
-2
@@ -8,7 +8,6 @@ from minify.cssmin import cssmin
|
|||||||
from minify.jsmin import jsmin
|
from minify.jsmin import jsmin
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
log = CPLog(__name__)
|
log = CPLog(__name__)
|
||||||
@@ -122,7 +121,7 @@ class ClientScript(Plugin):
|
|||||||
# Combine all files together with some comments
|
# Combine all files together with some comments
|
||||||
data = ''
|
data = ''
|
||||||
for r in raw:
|
for r in raw:
|
||||||
data += self.comment.get(file_type) % (r.get('file'), r.get('date'))
|
data += self.comment.get(file_type) % (ss(r.get('file')), r.get('date'))
|
||||||
data += r.get('data') + '\n\n'
|
data += r.get('data') + '\n\n'
|
||||||
|
|
||||||
self.createFile(out, data.strip())
|
self.createFile(out, data.strip())
|
||||||
|
|||||||
Reference in new issue
Block a user