[tor-commits] [gettor/master] Split words on whitespace

ilv at torproject.org ilv at torproject.org
Tue Nov 3 19:31:31 UTC 2015


commit 79359bd87d2450c7a15eac2c053a8d9b06fa4563
Author: Arlo Breault <arlolra at gmail.com>
Date:   Fri Oct 2 12:01:35 2015 +0200

    Split words on whitespace
---
 gettor/smtp.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gettor/smtp.py b/gettor/smtp.py
index 34477ef..cfabfda 100644
--- a/gettor/smtp.py
+++ b/gettor/smtp.py
@@ -271,8 +271,8 @@ class SMTP(object):
         # search for OS or mirrors request
         # if nothing is found, help by default
         found_request = False
-        lines = msg.split(' ')
-        for word in lines:
+        words = re.split('\s+', test.strip())
+        for word in words:
             if not found_request:
                 # OS first
                 for os in supported_os:





More information about the tor-commits mailing list