None comparison

This commit is contained in:
Vighnesh Birodkar
2014-06-26 00:58:54 +05:30
parent b1284ee180
commit bb874074c4
+2 -2
View File
@@ -14,9 +14,9 @@ def _max_edge(g, src, dst, neighbor):
except KeyError:
w2 = None
if w1 == None:
if w1 is None:
return w2
elif w2 == None:
elif w2 is None:
return w1
else:
return max(w1, w2)