[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 79359bd87d2450c7a15eac2c053a8d9b06fa4563
Author: Arlo Breault <arlolra@xxxxxxxxx>
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:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits