8000 Call warnings._deprecated correctly for uu message payload decode · python/cpython@acc62ea · GitHub
[go: up one dir, main page]

Skip to content

Commit acc62ea

Browse files
committed
Call warnings._deprecated correctly for uu message payload decode
1 parent 53141f5 commit acc62ea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Lib/email/message.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ def get_payload(self, i=None, decode=False):
320320
return value
321321
elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
322322
warnings._deprecated(
323-
'Support for decoding legacy uuencoded payloads in messages '
324-
'is deprecated and scheduled for removal in Python {remove}',
323+
'Decoding legacy uuencoded payloads in messages',
325324
remove=(3, 14))
326325
try:
327326
# We already issue our own warning here

test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import sys; print(sys.argv)

test_spawnv_issue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import sys; print(sys.argv)

0 commit comments

Comments
 (0)
0