[Zope3-checkins] CVS: Zope3/src/zope/server/ftp - server.py:1.4
Jeremy Hylton
jeremy@zope.com
Mon, 30 Jun 2003 15:31:06 -0400
Update of /cvs-repository/Zope3/src/zope/server/ftp
In directory cvs.zope.org:/tmp/cvs-serv19989
Modified Files:
server.py
Log Message:
Remove unused local variables.
=== Zope3/src/zope/server/ftp/server.py 1.3 => 1.4 ===
--- Zope3/src/zope/server/ftp/server.py:1.3 Fri Jun 6 15:29:11 2003
+++ Zope3/src/zope/server/ftp/server.py Mon Jun 30 15:31:05 2003
@@ -387,14 +387,12 @@
self.reply('ERR_IS_NOT_FILE', path)
return
- mode = 'r' + self.type_mode_map[self.transfer_mode]
start = 0
if self.restart_position:
start = self.restart_position
self.restart_position = 0
- ok_reply = (
- 'OPEN_CONN', (self.type_map[self.transfer_mode], path) )
+ ok_reply = 'OPEN_CONN', (self.type_map[self.transfer_mode], path)
cdc = XmitChannel(self, ok_reply)
self.client_dc = cdc
outstream = ApplicationXmitStream(cdc)
@@ -477,7 +475,6 @@
start = 0
if self.restart_position:
self.start = self.restart_position
- restart_position = 0
mode = write_mode + self.type_mode_map[self.transfer_mode]
if not self._getFileSystem().writable(path):
@@ -590,10 +587,10 @@
cdc.bind(('', self.server.port - 1))
try:
cdc.connect((ip, port))
- except socket.error, err:
+ except socket.error:
cdc.close('NO_DATA_CONN')
-
+
def notifyClientDCClosing(self, *reply_args):
if self.client_dc is not None:
self.client_dc = None