Skip to content

Commit

Permalink
Merge pull request #10 from AyumuKasuga/patch-1
Browse files Browse the repository at this point in the history
Add compatibility with celery 4 #9
  • Loading branch information
miki725 authored Mar 15, 2017
2 parents b755ff5 + 1696912 commit 4999de1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion celery_redis_sentinel/register.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import celery

if celery.VERSION.major < 4:
from celery.backends import BACKEND_ALIASES
else:
from celery.app.backends import BACKEND_ALIASES

from celery.backends import BACKEND_ALIASES
from kombu.transport import TRANSPORT_ALIASES

from .backend import RedisSentinelBackend
Expand Down

0 comments on commit 4999de1

Please sign in to comment.