Skip to content

Commit

Permalink
imaplib: restore original exception msg formatting
Browse files Browse the repository at this point in the history
This reduces the footprint of PR python#122542.
  • Loading branch information
foresto committed Dec 17, 2024
1 parent 7fc8a24 commit 33a1fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/imaplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def readline(self):

line = b''.join(parts)
if len(line) > _MAXLINE:
raise self.error(f'got more than {_MAXLINE} bytes')
raise self.error("got more than %d bytes" % _MAXLINE)
return line


Expand Down

0 comments on commit 33a1fed

Please sign in to comment.