Kaydet (Commit) 0c5e049c authored tarafından Guido van Rossum's avatar Guido van Rossum

Reindented with 4 spaces.

üst 7cfd31ee
...@@ -421,8 +421,7 @@ class Folder: ...@@ -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): ...@@ -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): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment