[Wisp-cvs] CVSROOT syncmail,1.1,1.2
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2002-08-31 14:59:52
|
Update of /cvsroot/wisp/CVSROOT In directory usw-pr-cvs1:/tmp/cvs-serv11685 Modified Files: syncmail Log Message: Dyked the binaryness checking feature of syncmail . Index: syncmail =================================================================== RCS file: /cvsroot/wisp/CVSROOT/syncmail,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- syncmail 29 Aug 2002 04:18:03 -0000 1.1 +++ syncmail 31 Aug 2002 14:59:47 -0000 1.2 @@ -117,10 +117,6 @@ PROGRAM = sys.argv[0] -BINARY_EXPLANATION_LINES = [ - "(This appears to be a binary file; contents omitted.)\n" - ] - REVCRE = re.compile("^(NONE|[0-9.]+)$") NOVERSION = "Couldn't generate diff; no version number found in filespec: %s" BACKSLASH = "Couldn't generate diff: backslash in filespec's filename: %s" @@ -170,15 +166,6 @@ fp = os.popen(update_cmd) lines = fp.readlines() 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 lines.insert(0, '--- NEW FILE: %s ---\n' % file) except IOError, e: lines = ['***** Error reading new file: ', |