Skip to content

Commit 696cb7a

Browse files
Apply ruff/pyupgrade rule UP031
UP031 Use format specifiers instead of percent format
1 parent 5cdf9eb commit 696cb7a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

uvloop/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ def get_event_loop(self) -> _AbstractEventLoop:
204204
"""
205205
if self._local._loop is None:
206206
raise RuntimeError(
207-
'There is no current event loop in thread %r.'
208-
% threading.current_thread().name
207+
f'There is no current event loop in thread {threading.current_thread().name!r}.'
209208
)
210209

211210
return self._local._loop

0 commit comments

Comments
 (0)