X-Git-Url: https://www.yuggoth.org/gitweb?p=weather.git;a=blobdiff_plain;f=weather.py;fp=weather.py;h=ee25089fc5d3a066037a54944b43a39fb36edf00;hp=71cf0ecca3a891a82b40a39484530a0261ba1c32;hb=62b0ce6d9d0cc03279228baa709ffca9eddaae35;hpb=28a5c0e1e6973b30d7dfa2659495c4533281ec56 diff --git a/weather.py b/weather.py index 71cf0ec..ee25089 100644 --- a/weather.py +++ b/weather.py @@ -1105,7 +1105,7 @@ def guess( print( " (proximity %s, %.3gkm, %.3gmi)" % ( score, km, mi ) ) - elif searchtype is "coordinates": + elif searchtype == "coordinates": print( " (%.3gkm, %.3gmi)" % (km, mi) ) if zone[0]: print( @@ -1121,7 +1121,7 @@ def guess( print( " (proximity %s, %.3gkm, %.3gmi)" % ( score, km, mi ) ) - elif searchtype is "coordinates" and zone[0]: + elif searchtype == "coordinates" and zone[0]: print( " (%.3gkm, %.3gmi)" % (km, mi) ) if cache_search: now = time.time()