Minor nitpicking..
This commit is contained in:
@@ -64,13 +64,12 @@ class Compressor(object):
|
||||
return basename.split("?", 1)[0]
|
||||
|
||||
def get_filepath(self, content, basename=None):
|
||||
filename = "%s.%s" % (get_hexdigest(content, 12), self.type)
|
||||
if basename is not None:
|
||||
filename = '.'.join([
|
||||
os.path.splitext(os.path.split(basename)[1])[0],
|
||||
filename
|
||||
])
|
||||
return os.path.join(self.output_dir, self.output_prefix, filename)
|
||||
parts = []
|
||||
if basename:
|
||||
filename = os.path.split(basename)[1]
|
||||
parts.append(os.path.splitext(filename)[0])
|
||||
parts.extend([get_hexdigest(content, 12), self.type])
|
||||
return os.path.join(self.output_dir, self.output_prefix, '.'.join(parts))
|
||||
|
||||
def get_filename(self, basename):
|
||||
filename = None
|
||||
|
||||
Reference in New Issue
Block a user