Commit b1531c16 by Timothée Peignier

fix formatting

parent d3fd1b2f
...@@ -102,7 +102,7 @@ class Compressor(object): ...@@ -102,7 +102,7 @@ class Compressor(object):
def base_path(self, paths): def base_path(self, paths):
def names_equal(name): def names_equal(name):
return all(n==name[0] for n in name[1:]) return all(n == name[0] for n in name[1:])
directory_levels = zip(*[p.split(os.sep) for p in paths]) directory_levels = zip(*[p.split(os.sep) for p in paths])
return os.sep.join(x[0] for x in takewhile(names_equal, directory_levels)) return os.sep.join(x[0] for x in takewhile(names_equal, directory_levels))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment