mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -162,8 +162,7 @@ def decode(input, output, encoding):
|
|||
if encoding in decodetab:
|
||||
pipethrough(input, decodetab[encoding], output)
|
||||
else:
|
||||
raise ValueError, \
|
||||
'unknown Content-Transfer-Encoding: %s' % encoding
|
||||
raise ValueError('unknown Content-Transfer-Encoding: %s' % encoding)
|
||||
|
||||
def encode(input, output, encoding):
|
||||
"""Encode common content-transfer-encodings (base64, quopri, uuencode)."""
|
||||
|
@ -181,8 +180,7 @@ def encode(input, output, encoding):
|
|||
if encoding in encodetab:
|
||||
pipethrough(input, encodetab[encoding], output)
|
||||
else:
|
||||
raise ValueError, \
|
||||
'unknown Content-Transfer-Encoding: %s' % encoding
|
||||
raise ValueError('unknown Content-Transfer-Encoding: %s' % encoding)
|
||||
|
||||
# The following is no longer used for standard encodings
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue