Skip to content

Commit 2d087a7

Browse files
adamchainztim-schilling
authored andcommitted
codestyle
1 parent 498d08a commit 2d087a7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/scout_apm/instruments/aioredis.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# The async_ module can only be shipped on Python 3.6+
1717
try:
1818
from scout_apm.async_.instruments.aioredis import (
19-
wrapped_redis_execute,
2019
wrapped_pipeline_execute,
20+
wrapped_redis_execute,
2121
)
2222
except ImportError:
2323
wrapped_redis_execute = None
@@ -38,7 +38,8 @@ def ensure_installed():
3838
logger.debug("Couldn't import aioredis.Redis - probably not installed.")
3939
elif wrapped_redis_execute is None:
4040
logger.debug(
41-
"Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6."
41+
"Couldn't import scout_apm.async_.instruments.aioredis -"
42+
+ " probably using Python < 3.6."
4243
)
4344
elif not have_patched_redis_execute:
4445
try:
@@ -58,7 +59,8 @@ def ensure_installed():
5859
)
5960
elif wrapped_pipeline_execute is None:
6061
logger.debug(
61-
"Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6."
62+
"Couldn't import scout_apm.async_.instruments.aioredis -"
63+
+ " probably using Python < 3.6."
6264
)
6365
elif not have_patched_pipeline_execute:
6466
try:

tests/integration/instruments/test_aioredis_py36plus.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ def test_ensure_installed_fail_no_wrapped_redis_execute(caplog):
7777
assert caplog.record_tuples[1] == (
7878
"scout_apm.instruments.aioredis",
7979
logging.DEBUG,
80-
"Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6.",
80+
(
81+
"Couldn't import scout_apm.async_.instruments.aioredis - probably"
82+
+ " using Python < 3.6."
83+
),
8184
)
8285

8386

@@ -124,7 +127,10 @@ def test_ensure_installed_fail_no_wrapped_pipeline_execute(caplog):
124127
assert caplog.record_tuples[1] == (
125128
"scout_apm.instruments.aioredis",
126129
logging.DEBUG,
127-
"Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6.",
130+
(
131+
"Couldn't import scout_apm.async_.instruments.aioredis -"
132+
+ " probably using Python < 3.6."
133+
),
128134
)
129135

130136

0 commit comments

Comments
 (0)