gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28141 - gnunet-planetlab/gplmt/gplmt


From: gnunet
Subject: [GNUnet-SVN] r28141 - gnunet-planetlab/gplmt/gplmt
Date: Thu, 18 Jul 2013 13:04:12 +0200

Author: wachs
Date: 2013-07-18 13:04:11 +0200 (Thu, 18 Jul 2013)
New Revision: 28141

Modified:
   gnunet-planetlab/gplmt/gplmt/Targets.py
Log:
== calls eq
!= calls cmp


Modified: gnunet-planetlab/gplmt/gplmt/Targets.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Targets.py     2013-07-18 09:47:40 UTC (rev 
28140)
+++ gnunet-planetlab/gplmt/gplmt/Targets.py     2013-07-18 11:04:11 UTC (rev 
28141)
@@ -39,7 +39,10 @@
             return 'planetlab'
         else:
             return "undefined"
+    def __cmp__(self,y):
+        return self.value==y.value     
     def __eq__(self,y):
+        print "Compare "+  str (y) + " " + str (self) + " : " + str 
(self.value==y.value)
         return self.value==y.value
     @staticmethod
     def create (source_str):




reply via email to

[Prev in Thread] Current Thread [Next in Thread]