Skip to content

Commit 78132db

Browse files
committed
Use f-strings
1 parent d189306 commit 78132db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

streamz/dask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def update(self, x, who=None, metadata=None):
109109
# lists and dicts. So we always use a dict here to be sure
110110
# we know the format exactly. The key will be taken as the
111111
# dask identifier of the data.
112-
tokenized_x = type(x).__name__ + "-" + tokenize(x)
112+
tokenized_x = f"{type(x).__name__}-{tokenize(x)}"
113113
future_as_dict = yield client.scatter({tokenized_x: x}, asynchronous=True)
114114
future = future_as_dict[tokenized_x]
115115
f = yield self._emit(future, metadata=metadata)

0 commit comments

Comments
 (0)