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

[or-cvs] r22205: {weather} Do things where they belong. (Thanks, Sebastian) (weather/trunk/lib/weather)



Author: kaner
Date: 2010-04-18 10:01:34 +0000 (Sun, 18 Apr 2010)
New Revision: 22205

Modified:
   weather/trunk/lib/weather/utils.py
Log:
Do things where they belong. (Thanks, Sebastian)


Modified: weather/trunk/lib/weather/utils.py
===================================================================
--- weather/trunk/lib/weather/utils.py	2010-04-18 09:55:46 UTC (rev 22204)
+++ weather/trunk/lib/weather/utils.py	2010-04-18 10:01:34 UTC (rev 22205)
@@ -65,12 +65,7 @@
 def unifyNodeID(nodeID):
     """Perform some basic unifying artistics on the node ID"""
     if nodeID.find(" ") is -1:
-        # No spaces found, check length
-        if len(nodeID) is 40:
             return nodeID
-        else:
-            logging.error("Bad nodeID: %s" % nodeID)
-            return nodeID
     unified = nodeID.replace(" ", "")
     if len(unified) > 40:
         # Maybe someone pasted the ID like so: