Commit 3a055402 by Adam Charnock

Ensure file globing is deterministic

A small change to ensure the order of filenames returned from glob() is deterministic. This is required to provide consistant file order (and therefore minified file version hashs) when running collectstatic on multiple servers.
parent 9bcbee07
......@@ -15,7 +15,7 @@ def glob(pathname):
The pattern may contain simple shell-style wildcards a la fnmatch.
"""
return list(iglob(pathname))
return sorted(list(iglob(pathname)))
def iglob(pathname):
......
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