summaryrefslogtreecommitdiff
path: root/compressor/management
diff options
context:
space:
mode:
authorJohannes Linke <johannes.linke@posteo.de>2015-12-05 13:23:53 +0100
committerJohannes Linke <johannes.linke@posteo.de>2015-12-09 19:02:26 +0100
commitff18ca1d2e5013f22aaaf8d408e7f4ab1fa6d826 (patch)
tree772cc3cd773426b9e757af1531b91368dc1192ea /compressor/management
parentabd9e9707f8b1896f1a6ff89d82c4cb7711cff99 (diff)
downloaddjango-compressor-ff18ca1d2e5013f22aaaf8d408e7f4ab1fa6d826.tar.gz
Fix a deprecation warning
Diffstat (limited to 'compressor/management')
-rw-r--r--compressor/management/commands/compress.py6
-rw-r--r--compressor/management/commands/mtime_cache.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/compressor/management/commands/compress.py b/compressor/management/commands/compress.py
index 0905a81..7b65066 100644
--- a/compressor/management/commands/compress.py
+++ b/compressor/management/commands/compress.py
@@ -6,7 +6,7 @@ from fnmatch import fnmatch
from optparse import make_option
import django
-from django.core.management.base import NoArgsCommand, CommandError
+from django.core.management.base import BaseCommand, CommandError
import django.template
from django.template import Context
from django.utils import six
@@ -40,9 +40,9 @@ else:
from StringIO import StringIO
-class Command(NoArgsCommand):
+class Command(BaseCommand):
help = "Compress content outside of the request/response cycle"
- option_list = NoArgsCommand.option_list + (
+ option_list = BaseCommand.option_list + (
make_option('--extension', '-e', action='append', dest='extensions',
help='The file extension(s) to examine (default: ".html", '
'separate multiple extensions with commas, or use -e '
diff --git a/compressor/management/commands/mtime_cache.py b/compressor/management/commands/mtime_cache.py
index e96f004..b1605ba 100644
--- a/compressor/management/commands/mtime_cache.py
+++ b/compressor/management/commands/mtime_cache.py
@@ -2,15 +2,15 @@ import fnmatch
import os
from optparse import make_option
-from django.core.management.base import NoArgsCommand, CommandError
+from django.core.management.base import BaseCommand, CommandError
from compressor.conf import settings
from compressor.cache import cache, get_mtime, get_mtime_cachekey
-class Command(NoArgsCommand):
+class Command(BaseCommand):
help = "Add or remove all mtime values from the cache"
- option_list = NoArgsCommand.option_list + (
+ option_list = BaseCommand.option_list + (
make_option('-i', '--ignore', action='append', default=[],
dest='ignore_patterns', metavar='PATTERN',
help="Ignore files or directories matching this glob-style "