projects
/
weather.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use "is" with a literal to test for equality
[weather.git]
/
weather.py
diff --git
a/weather.py
b/weather.py
index
71cf0ec
..
ee25089
100644
(file)
--- a/
weather.py
+++ b/
weather.py
@@
-1105,7
+1105,7
@@
def guess(
print(
" (proximity %s, %.3gkm, %.3gmi)" % ( score, km, mi )
)
print(
" (proximity %s, %.3gkm, %.3gmi)" % ( score, km, mi )
)
- elif searchtype
is
"coordinates":
+ elif searchtype
==
"coordinates":
print( " (%.3gkm, %.3gmi)" % (km, mi) )
if zone[0]:
print(
print( " (%.3gkm, %.3gmi)" % (km, mi) )
if zone[0]:
print(
@@
-1121,7
+1121,7
@@
def guess(
print(
" (proximity %s, %.3gkm, %.3gmi)" % ( score, km, mi )
)
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()
print( " (%.3gkm, %.3gmi)" % (km, mi) )
if cache_search:
now = time.time()