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