Rev 613: Fix #279831: Don't always expect True the object to be used as a Truth value in file:///v/home/vila/.bazaar/plugins/gtk/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Oct 21 13:17:30 BST 2008
At file:///v/home/vila/.bazaar/plugins/gtk/
------------------------------------------------------------
revno: 613
revision-id: v.ladeuil+lp at free.fr-20081021121728-p5sd5w25v43u7dpk
parent: jelmer at samba.org-20081014194927-l8hyj1i4j3sxktte
parent: john at arbash-meinel.com-20081007205901-ifjebw6gzul1awyn
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: gtk
timestamp: Tue 2008-10-21 14:17:28 +0200
message:
Fix #279831: Don't always expect True the object to be used as a Truth value
modified:
diff.py diffwin.py-20051017070234-cb5c6dc4960142f5
------------------------------------------------------------
revno: 605.1.1
revision-id: john at arbash-meinel.com-20081007205901-ifjebw6gzul1awyn
parent: jelmer at samba.org-20080903194613-kkq5m5kilx4rnax5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: gtk
timestamp: Tue 2008-10-07 15:59:01 -0500
message:
just use changed_content as a truth value, rather than checking 'is True'
modified:
diff.py diffwin.py-20051017070234-cb5c6dc4960142f5
-------------- next part --------------
=== modified file 'diff.py'
--- a/diff.py 2008-07-25 13:32:06 +0000
+++ b/diff.py 2008-10-07 20:59:01 +0000
@@ -689,7 +689,7 @@
change_type = kind_changed
display_path = (paths[0] + source_marker
+ ' => ' + paths[1] + marker)
- elif changed_content is True or executables[0] != executables[1]:
+ elif changed_content or executables[0] != executables[1]:
change_type = modified
else:
assert False, "How did we get here?"
More information about the bazaar-commits
mailing list