Skip to content

Commit 656898e

Browse files
authored
Removed rq.compat (#314)
* Removed rq.compat * Install setuptools before running CI * Properly decode strings
1 parent 63f2cc3 commit 656898e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38+
python -m pip install setuptools
3839
pip install redis==${{ matrix.redis-py-version }}
3940
python setup.py install
4041

tests/fixtures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from redis import Redis
1818
from rq import Connection, get_current_job, get_current_connection, Queue
1919
from rq.decorators import job
20-
from rq.compat import text_type
2120
from rq.worker import HerokuWorker, Worker
2221

2322

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

4039
def say_hello_unicode(name=None):
4140
"""A job with a single argument and a return value."""
42-
return text_type(say_hello(name)) # noqa
41+
return say_hello(name)
4342

4443

4544
def do_nothing():

tests/test_scheduler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from dateutil.tz import tzlocal
1111
from dateutil.tz import UTC
1212
from rq import Queue
13-
from rq.compat import as_text
1413
from rq.job import Job
1514

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

2928

3029
def tl(l):
31-
return [as_text(i) for i in l]
30+
return [i.decode() for i in l]
3231

3332

3433
def simple_addition(x, y, z):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy