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

[tor-commits] [weather/master] Be more consistent in your operator usage



commit 023bb96f63fe95bf1e926b5d8bae47c625f3a731
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sat Feb 26 23:57:00 2011 +0100

    Be more consistent in your operator usage
---
 weather/weatherapp/ctlutil.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/weather/weatherapp/ctlutil.py b/weather/weatherapp/ctlutil.py
index c0e2e4f..88a098f 100644
--- a/weather/weatherapp/ctlutil.py
+++ b/weather/weatherapp/ctlutil.py
@@ -272,7 +272,7 @@ class CtlUtil:
         # Special case when the dirauth can't agree on recommended versions,
         # the list is empty. In that case we play along as if everything was 
         # fine
-        if len(version_list) is 0:
+        if len(version_list) == 0:
             return 'RECOMMENDED'
 
         if client_version in version_list:
@@ -282,7 +282,7 @@ class CtlUtil:
         # in the `recommended' list
         if client_version.endswith("-dev"):
             version_list.append(client_version)
-            if get_highest_version(version_list) is client_version:
+            if get_highest_version(version_list) == client_version:
                 return 'RECOMMENDED'
             # If 0.2.1.34 is stable, that means 0.2.1.34-dev is fine, too.
             nondev_name = client_version.replace("-dev", "")



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