Skip to content

Commit

Permalink
Cache file backends: dropped the "Async" in class names
Browse files Browse the repository at this point in the history
  • Loading branch information
mkai committed Nov 4, 2013
1 parent 260c6f5 commit af33162
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions imagekit/cachefiles/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def schedule_generation(self, file, force=False):
pass


class CeleryAsync(BaseAsync):
class Celery(BaseAsync):
"""
A backend that uses Celery to generate the images.
"""
Expand All @@ -151,8 +151,8 @@ def __init__(self, *args, **kwargs):
import celery
except ImportError:
raise ImproperlyConfigured('You must install celery to use'
' imagekit.cachefiles.backends.CeleryAsync.')
super(CeleryAsync, self).__init__(*args, **kwargs)
' imagekit.cachefiles.backends.Celery.')
super(Celery, self).__init__(*args, **kwargs)

def get_task(self):
if not hasattr(self, '_task'):
Expand All @@ -163,7 +163,7 @@ def schedule_generation(self, file, force=False):
self.get_task().delay(self, file, force=force)


Async = CeleryAsync # backwards compatibility
Async = Celery # backwards compatibility


try:
Expand All @@ -172,7 +172,7 @@ def schedule_generation(self, file, force=False):
pass


class RQAsync(BaseAsync):
class RQ(BaseAsync):
"""
A backend that uses RQ to generate the images.
"""
Expand All @@ -183,8 +183,8 @@ def __init__(self, *args, **kwargs):
import django_rq
except ImportError:
raise ImproperlyConfigured('You must install django_rq to use'
' imagekit.cachefiles.backends.RQAsync.')
super(RQAsync, self).__init__(*args, **kwargs)
' imagekit.cachefiles.backends.RQ.')
super(RQ, self).__init__(*args, **kwargs)

def get_queue(self):
# not caching property to avoid "can't pickle instancemethod objects",
Expand Down

0 comments on commit af33162

Please sign in to comment.