Skip to content

Commit 670fc66

Browse files
Apply ruff/pyupgrade rule UP031
UP031 Use format specifiers instead of percent format
1 parent d9d3ebd commit 670fc66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

uvloop/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ def get_event_loop(self) -> _AbstractEventLoop:
206206
"""
207207
if self._local._loop is None:
208208
raise RuntimeError(
209-
'There is no current event loop in thread %r.'
210-
% threading.current_thread().name
209+
f'There is no current event loop in thread {threading.current_thread().name!r}.'
211210
)
212211

213212
return self._local._loop

0 commit comments

Comments
 (0)