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

[or-cvs] r24045: {arm} Config validation mistakenly thought that Tor stripped space (arm/trunk/src/util)



Author: atagar
Date: 2011-01-07 04:03:25 +0000 (Fri, 07 Jan 2011)
New Revision: 24045

Modified:
   arm/trunk/src/util/torConfig.py
Log:
Config validation mistakenly thought that Tor stripped spaces from CSV getconf responses (caught by murb)



Modified: arm/trunk/src/util/torConfig.py
===================================================================
--- arm/trunk/src/util/torConfig.py	2011-01-06 17:29:22 UTC (rev 24044)
+++ arm/trunk/src/util/torConfig.py	2011-01-07 04:03:25 UTC (rev 24045)
@@ -421,14 +421,6 @@
     # issues GETCONF to get the values tor's currently configured to use
     torValues = conn.getOption(option, [], True)
     
-    # Some singleline entries are lists, in which case tor provides csv values
-    # without spaces, such as:
-    # lolcat1,lolcat2,cutebunny,extracutebunny,birthdaynode
-    # so we need to strip spaces in comma separated values.
-    
-    if "," in value:
-      value = ",".join([val.strip() for val in value.split(",")])
-    
     # multiline entries can be comma separated values (for both tor and conf)
     valueList = [value]
     if option in getMultilineParameters():