From 99688ac82ab70dc53910ae94ae5d152dcd4ea1ac Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Mon, 13 Jul 2015 12:26:16 -0400 Subject: [PATCH] remove trailing whitespace --- collectData.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collectData.py b/collectData.py index 849840a..33686ad 100755 --- a/collectData.py +++ b/collectData.py @@ -7,7 +7,7 @@ import sys #Determines whether or not a message had a meaningful attachment -def messageHasAttachment(contents): +def messageHasAttachment(contents): if contents.find("non-text attachment was scrubbed...") == -1: return "no" if contents.count("non-text attachment was scrubbed") == \ @@ -28,7 +28,7 @@ def parseURL(URL): contents = buffer.getvalue() messageData["length"] = len(contents) - + messageData["attachment"] = messageHasAttachment(contents) dateTimeRE = re.compile("([a-zA-Z]+).*?([0-9:]{8})") @@ -85,7 +85,7 @@ def parseURL(URL): URL = baseURL + match.group(1) subject = string.replace(match.group(2), "\t", " ") - #get the author of this message (two lines later) + #get the author of this message (two lines later) i = i + 2 line = contents[i] match = authorRE.search(line)