Skip to content

Commit 6de5db4

Browse files
committed
STY: appease linter
1 parent dde477c commit 6de5db4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/bluesky/callbacks/zmq.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
import asyncio
1616
import copy
1717
import pickle
18-
from typing import Union
19-
import uuid
2018
import warnings
21-
from enum import Enum
19+
from typing import Union
2220

2321
from ..run_engine import Dispatcher, DocumentNames
2422

@@ -205,7 +203,7 @@ def __init__(self, in_address=None, out_address=None, *, zmq=None):
205203
# Socket facing clients
206204
frontend = context.socket(zmq.SUB)
207205
if in_address is None:
208-
in_port = frontend.bind_to_random_port(f"tcp://*")
206+
in_port = frontend.bind_to_random_port("tcp://*")
209207
else:
210208
in_address = _normalize_address(in_address)
211209
in_port = frontend.bind(in_address)
@@ -215,7 +213,7 @@ def __init__(self, in_address=None, out_address=None, *, zmq=None):
215213
# Socket facing services
216214
backend = context.socket(zmq.PUB)
217215
if out_address is None:
218-
out_port = backend.bind_to_random_port(f"tcp://*")
216+
out_port = backend.bind_to_random_port("tcp://*")
219217
else:
220218
out_address = _normalize_address(out_address)
221219
out_port = backend.bind(out_address)

src/bluesky/tests/test_zmq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def local_cb(name, doc):
339339
def test_zmq_RD_ports_spec(host):
340340
# test that two ways of specifying address are equivalent
341341
d = RemoteDispatcher(host)
342-
assert d.address == 'tcp://localhost:5555'
342+
assert d.address == "tcp://localhost:5555"
343343
assert d._socket is None
344344
assert d._context is None
345345
assert not d.closed

0 commit comments

Comments
 (0)