[Expat-checkins] CVS: CVSROOT syncmail,1.3,1.4

Fred L. Drake fdrake@users.sourceforge.net
Fri, 27 Jul 2001 07:24:26 -0700


Update of /cvsroot/expat/CVSROOT
In directory usw-pr-cvs1:/tmp/cvs-serv13809

Modified Files:
	syncmail 
Log Message:

Try to be a little smarter about what gets called a binary file; all
whitespace characters are allowed!


Index: syncmail
===================================================================
RCS file: /cvsroot/expat/CVSROOT/syncmail,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** syncmail	2001/07/25 13:53:30	1.3
--- syncmail	2001/07/27 14:24:24	1.4
***************
*** 79,82 ****
--- 79,88 ----
  
  
+ if hasattr(string, "ascii_whitespace"):
+     _whitespace = string.ascii_whitespace
+ else:
+     _whitespace = string.whitespace
+ 
+ 
  
  def usage(code, msg=''):
***************
*** 109,112 ****
--- 115,120 ----
                  for c in line:
                      if c < ' ' or c > chr(127):
+                         if c in _whitespace:
+                             continue
                          binary = 1
                          break