Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using removed rq.compat from rq older than rq 1.13 #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
rqscheduler = rq_scheduler.scripts.rqscheduler:main
''',
package_data={'': ['README.rst']},
install_requires=['crontab>=0.23.0', 'rq>=0.13', 'python-dateutil', 'freezegun'],
install_requires=['crontab>=0.23.0', 'rq>=1.13', 'python-dateutil', 'freezegun'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from redis import Redis
from rq import Connection, get_current_job, get_current_connection, Queue
from rq.decorators import job
from rq.compat import text_type
from rq.worker import HerokuWorker, Worker


Expand All @@ -39,7 +38,7 @@ async def say_hello_async(name=None):

def say_hello_unicode(name=None):
"""A job with a single argument and a return value."""
return text_type(say_hello(name)) # noqa
return str(say_hello(name)) # noqa


def do_nothing():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from dateutil.tz import tzlocal
from dateutil.tz import UTC
from rq import Queue
from rq.compat import as_text
from rq.job import Job

from rq_scheduler import Scheduler
Expand All @@ -28,7 +27,7 @@ def say_hello(name=None):


def tl(l):
return [as_text(i) for i in l]
return [str(i) for i in l]


def simple_addition(x, y, z):
Expand Down
Loading