From bfda39f53e6f7cbbe959e1232286243efa2c19ec Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 15 Jun 2011 11:20:52 +0200 Subject: [PATCH] Fix #65: no .gz in GzipCompressorFileStorage URLs. --- compressor/storage.py | 3 --- compressor/tests/tests.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/compressor/storage.py b/compressor/storage.py index 755c51f..a8cfac1 100644 --- a/compressor/storage.py +++ b/compressor/storage.py @@ -47,9 +47,6 @@ class GzipCompressorFileStorage(CompressorFileStorage): The standard compressor file system storage that gzips storage files additionally to the usual files. """ - def url(self, name): - return u'%s.gz' % super(GzipCompressorFileStorage, self).url(name) - def save(self, filename, content): filename = super(GzipCompressorFileStorage, self).save(filename, content) out = gzip.open(u'%s.gz' % self.path(filename), 'wb') diff --git a/compressor/tests/tests.py b/compressor/tests/tests.py index 723e7e1..58d223c 100644 --- a/compressor/tests/tests.py +++ b/compressor/tests/tests.py @@ -422,7 +422,7 @@ class StorageTestCase(TestCase): {% endcompress %} """ context = { 'MEDIA_URL': settings.COMPRESS_URL } - out = u'' + out = u'' self.assertEqual(out, render(template, context))