[Zope3-checkins] CVS: Zope3/src/zope/server/ftp - server.py:1.2
Albertas Agejevas
alga@codeworks.lt
Thu, 13 Mar 2003 13:49:47 -0500
Update of /cvs-repository/Zope3/src/zope/server/ftp
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/server/ftp
Modified Files:
server.py
Log Message:
An unexpected raid by the Whitespace Police.
Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.
=== Zope3/src/zope/server/ftp/server.py 1.1 => 1.2 ===
--- Zope3/src/zope/server/ftp/server.py:1.1 Mon Feb 3 10:08:55 2003
+++ Zope3/src/zope/server/ftp/server.py Thu Mar 13 13:49:17 2003
@@ -207,14 +207,14 @@
except GetoptError:
self.reply('ERR_ARGS')
return
-
+
if len(args) > 1:
self.reply('ERR_ARGS')
return
args = args and args[0] or ''
-
-
+
+
fs = self._getFileSystem()
path = self._generatePath(args)
if not fs.type(path):
@@ -255,7 +255,7 @@
path = self._generatePath(path)
-
+
if fs.type(path) == 'd' and not directory:
if long:
file_list = map(ls, fs.ls(path))
@@ -288,9 +288,9 @@
mtime.hour, mtime. minute, mtime.second)
else:
mtime = 0, 0, 0, 0, 0, 0
-
+
self.reply('FILE_DATE', mtime)
-
+
def cmd_mkd(self, args):
'See IFTPCommandHandler'
@@ -703,7 +703,7 @@
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
# bind to an address on the interface that the
# control connection is coming from.
- self.bind ( (self.control_channel.getsockname()[0], 0) )
+ self.bind((self.control_channel.getsockname()[0], 0))
self.addr = self.getsockname()
self.listen(1)