Reindented with 4 spaces.

This commit is contained in:
Guido van Rossum 1997-04-16 02:47:12 +00:00
parent 7cfd31ee8a
commit 0c5e049c75

View File

@ -421,8 +421,7 @@ class Folder:
else: else:
if n not in all: if n not in all:
if isnumeric(seq): if isnumeric(seq):
raise Error, \ raise Error, "message %d doesn't exist" % n
"message %d doesn't exist" % n
else: else:
raise Error, "no %s message" % seq raise Error, "no %s message" % seq
else: else:
@ -686,8 +685,7 @@ class Message(mimetools.Message):
# (almost) as a Message object. # (almost) as a Message object.
def getbodyparts(self): def getbodyparts(self):
if self.getmaintype() != 'multipart': if self.getmaintype() != 'multipart':
raise Error, \ raise Error, 'Content-Type is not multipart/*'
'Content-Type is not multipart/*'
bdry = self.getparam('boundary') bdry = self.getparam('boundary')
if not bdry: if not bdry:
raise Error, 'multipart/* without boundary param' raise Error, 'multipart/* without boundary param'
@ -894,8 +892,7 @@ def pickline(file, key, casefold = 1):
text = line[len(key)+1:] text = line[len(key)+1:]
while 1: while 1:
line = f.readline() line = f.readline()
if not line or \ if not line or line[0] not in string.whitespace:
line[0] not in string.whitespace:
break break
text = text + line text = text + line
return string.strip(text) return string.strip(text)