X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.py;h=8c18c6ae0cbc1ff752092c07f24ae6759ce57949;hb=85d70ec62cddedc9c2d48bf44d280af266ac0c7f;hp=c30c8e656241dfd769b617083d6d0ef1b26c42e1;hpb=5f6df06225495ac32d416f2d7643fe88d52b10ab;p=mimedecode.git diff --git a/mimedecode.py b/mimedecode.py index c30c8e6..8c18c6a 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -373,7 +373,7 @@ def decode_part(msg): for content_type in masks: if content_type in g.error_mask: - raise ValueError, "content type %s prohibited" % ctype + raise ValueError("content type %s prohibited" % ctype) def decode_multipart(msg): "Decode multipart" @@ -427,7 +427,7 @@ def decode_multipart(msg): for content_type in masks: if content_type in g.error_mask: - raise ValueError, "content type %s prohibited" % ctype + raise ValueError("content type %s prohibited" % ctype) output_headers(msg)