From 455f077b6aa789d711a7e60083e22e6a237f2ff4 Mon Sep 17 00:00:00 2001 From: chove Date: Tue, 23 May 2006 15:45:07 +0200 Subject: [PATCH] =?UTF-8?q?Sur=20une=20bonne=20id=C3=A9e=20de=20nico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Idé pour la suite : tester l'extention (pdf, png... = binaire) pour les jours ou momo modifiera le site install party et qu'on va avoir les diff des png. darcs-hash:20060523134507-4ec08-0f55b09aefd2527e127888a1b58a582e54cb040c.gz --- syncmail | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/syncmail b/syncmail index 4517f9af..a115e12f 100755 --- a/syncmail +++ b/syncmail @@ -187,13 +187,13 @@ def calculate_diff(entry, contextlines): fp.close() # Is this a binary file? Let's look at the first few # lines to figure it out: - for line in lines[:5]: - for c in string.rstrip(line): - if c in string.whitespace: - continue - if c < ' ' or c > chr(127): - lines = BINARY_EXPLANATION_LINES[:] - break + #for line in lines[:5]: + # for c in string.rstrip(line): + # if c in string.whitespace: + # continue + # if c < ' ' or c > chr(127): + # lines = BINARY_EXPLANATION_LINES[:] + # break lines.insert(0, '--- NEW FILE: %s ---\n' % file) except IOError, e: lines = ['***** Error reading new file: ',