uggedal / webdepcompress (http://dev.pocoo.org/hg/webdepcompress/)
My clone of Armin Ronacher's webcompress
Clone this repository (size: 19.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/uggedal/webdepcompress/
| commit 11: | 68248d2f3bb5 |
| parent 10: | 39c048d9e003 |
| branch: | default |
Should open the file..
Changed (Δ6 bytes):
raw changeset »
webdepcompress/manager.py (1 lines added, 1 lines removed)
Up to file-list webdepcompress/manager.py:
| … | … | @@ -98,7 +98,7 @@ class Pack(object): |
98 |
98 |
fn = self._compressed_filename(ext) |
99 |
99 |
if os.path.isfile(os.path.join(mgr.directory, fn)): |
100 |
100 |
base = _format(fn) |
101 |
f = o |
|
101 |
f = open(os.path.join(mgr.directory, fn)) |
|
102 |
102 |
hash = hashlib.md5(f.read()).hexdigest() |
103 |
103 |
f.close() |
104 |
104 |
yield "%s?v=%s" % (base, hash[:5]) |
