Remove parentheses, unnecessary in python
This commit is contained in:
parent
5e8052e78d
commit
8fa30ad71c
@ -25,7 +25,7 @@ def minify(pelican):
|
||||
"""
|
||||
for dirpathcss, _, filenames in os.walk(PATH_CSS):
|
||||
for name in filenames:
|
||||
if os.path.splitext(name)[1] in ('.css'):
|
||||
if os.path.splitext(name)[1] in '.css':
|
||||
filepath = os.path.join(dirpathcss, name)
|
||||
logger.info('minifiy %s with css-html-js-minify', filepath)
|
||||
call('css-html-js-minify {}'.format(filepath),
|
||||
@ -33,7 +33,7 @@ def minify(pelican):
|
||||
|
||||
for dirpathjs, _, filenames in os.walk(PATH_JS):
|
||||
for name in filenames:
|
||||
if os.path.splitext(name)[1] in ('.js'):
|
||||
if os.path.splitext(name)[1] in '.js':
|
||||
filepath = os.path.join(dirpathjs, name)
|
||||
logger.info('minifiy %s with css-html-js-minify', filepath)
|
||||
call("css-html-js-minify {}".format(filepath),
|
||||
|
Loading…
x
Reference in New Issue
Block a user