Skip to content

Commit fa8f099

Browse files
Fix old version too
1 parent 30dee54 commit fa8f099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/message_registry.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def format(self, *args: object, **kwargs: object) -> "ErrorMessage":
240240
codes.STR_BYTES_PY3,
241241
)
242242
FORMAT_STR_BYTES_USE_REPR_OLD: Final = ErrorMessage(
243-
"On Python 3 '%s' % b'abc' produces \"b'abc'\", not 'abc'; use '%r' % b'abc' if this is"
244-
" desired behavior",
243+
'On Python 3 formatting "b\'abc\'" with "%s" produces "b\'abc\'", not "abc"; use "%r"'
244+
" if this is desired behavior",
245245
codes.STR_BYTES_PY3,
246246
)
247247
FORMAT_STR_INVALID_NUMERIC_FLAG: Final = ErrorMessage(

0 commit comments

Comments
 (0)