[meld/Python3: 8/54] dirdiff: Python 3 bytes



commit 6fbc1c3612f3d9ffdfde9b007240d05e3965c25d
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Mar 8 07:57:14 2014 +1000

    dirdiff: Python 3 bytes

 meld/dirdiff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 47fdd2e..05bb5b4 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -158,7 +158,7 @@ def _files_same(files, regexes, comparison_args):
 
             # Rough test to see whether files are binary. If files are guessed
             # to be binary, we don't examine contents for speed and space.
-            if any(["\0" in d for d in data]):
+            if any(b"\0" in d for d in data):
                 need_contents = False
 
             while True:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]