[Python-checkins] CVS: python/dist/src/Lib CGIHTTPServer.py,1.16,1.17
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 04:10:28 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv21209
Modified Files:
CGIHTTPServer.py
Log Message:
Eliminate use of string.whitespace and a string import with it.
Some of the characters (form feed, vertical tab) are not
legal continuation characters anyway, so this was wrong as
well as annoying.
Index: CGIHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/CGIHTTPServer.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** CGIHTTPServer.py 2001/02/09 08:46:26 1.16
--- CGIHTTPServer.py 2001/02/09 12:10:26 1.17
***************
*** 24,28 ****
import os
import sys
- import string
import urllib
import BaseHTTPServer
--- 24,27 ----
***************
*** 165,169 ****
accept = []
for line in self.headers.getallmatchingheaders('accept'):
! if line[:1] in string.whitespace:
accept.append(line.strip())
else:
--- 164,168 ----
accept = []
for line in self.headers.getallmatchingheaders('accept'):
! if line[:1] in "\t\n\r ":
accept.append(line.strip())
else: