~vila/bzr-gtk/286834-handle-missing-files

« back to all changes in this revision

Viewing changes to diff.py

  • Committer: Vincent Ladeuil
  • Date: 2008-10-21 12:17:28 UTC
  • mfrom: (605.1.1 gtk)
  • Revision ID: v.ladeuil+lp@free.fr-20081021121728-p5sd5w25v43u7dpk
Fix #279831: Don't always expect True the object to be used as a Truth value

Show diffs side-by-side

added added

removed removed

Lines of Context:
689
689
                    change_type = kind_changed
690
690
                    display_path = (paths[0] + source_marker
691
691
                                    + ' => ' + paths[1] + marker)
692
 
                elif changed_content is True or executables[0] != executables[1]:
 
692
                elif changed_content or executables[0] != executables[1]:
693
693
                    change_type = modified
694
694
                else:
695
695
                    assert False, "How did we get here?"