[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPResponse.py:1.78 HTTPRequest.py:1.96 BaseResponse.py:1.19

Jeremy Hylton jeremy at zope.com
Fri Dec 26 18:48:19 EST 2003


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv15255/lib/python/ZPublisher

Modified Files:
	HTTPResponse.py HTTPRequest.py BaseResponse.py 
Log Message:
Remove unused imports and local variables.


=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.77 => 1.78 ===
--- Zope/lib/python/ZPublisher/HTTPResponse.py:1.77	Tue Nov 18 08:17:17 2003
+++ Zope/lib/python/ZPublisher/HTTPResponse.py	Fri Dec 26 18:48:18 2003
@@ -288,7 +288,7 @@
             return self
 
         if isinstance(body, tuple) and len(body) == 2:
-            title,body = body
+            title, body = body
 
         if not isinstance(body, str):
             if hasattr(body,'asHTML'):


=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.95 => 1.96 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:1.95	Thu Dec 11 14:50:28 2003
+++ Zope/lib/python/ZPublisher/HTTPRequest.py	Fri Dec 26 18:48:18 2003
@@ -13,7 +13,7 @@
 
 __version__='$Revision$'[11:-2]
 
-import re, sys, os,  urllib, time, random, cgi, codecs
+import re, sys, os, time, random, codecs
 from types import StringType, UnicodeType
 from BaseRequest import BaseRequest
 from HTTPResponse import HTTPResponse
@@ -205,7 +205,6 @@
             If the URL makes no sense in light of the current virtual
             hosting context, a ValueError is raised."""
         other = self.other
-        bad_server_url = 0
         path = filter(None, URL.split( '/'))
 
         if URL.find( '://') >= 0:
@@ -214,7 +213,6 @@
         # Check the path against BASEPATH1
         vhbase = self._script
         vhbl = len(vhbase)
-        bad_basepath = 0
         if path[:vhbl] == vhbase:
             path = path[vhbl:]
         else:
@@ -404,7 +402,7 @@
             CGI_name=isCGI_NAME
             defaults={}
             tainteddefaults={}
-            converter=seqf=None
+            converter=None
 
             for item in fslist:
 
@@ -453,10 +451,8 @@
                             converter_type = type_name
                             flags=flags|CONVERTED
                         elif type_name == 'list':
-                            seqf=list
                             flags=flags|SEQUENCE
                         elif type_name == 'tuple':
-                            seqf=tuple
                             tuple_items[key]=1
                             flags=flags|SEQUENCE
                         elif (type_name == 'method' or type_name == 'action'):


=== Zope/lib/python/ZPublisher/BaseResponse.py 1.18 => 1.19 ===
--- Zope/lib/python/ZPublisher/BaseResponse.py:1.18	Tue Nov 18 08:17:17 2003
+++ Zope/lib/python/ZPublisher/BaseResponse.py	Fri Dec 26 18:48:18 2003
@@ -15,10 +15,7 @@
 $Id$'''
 __version__ = '$Revision$'[11:-2]
 
-import  types, sys
-from types import StringType, InstanceType
-from zExceptions import Unauthorized, Forbidden
-from zExceptions import NotFound, BadRequest
+from zExceptions import Unauthorized, Forbidden, NotFound, BadRequest
 
 class BaseResponse:
     """Base Response Class




More information about the Zope-Checkins mailing list