From 46ebcd142787ce88105662a1b3d6e187e60fa02f Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Thu, 27 Oct 2011 02:45:34 -0400 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- .gitignore | 20 ++++++++++++++++++++ account.ma | 6 +++--- profile.ma | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/account.ma b/account.ma index e6cb7da..2b9dc97 100644 --- a/account.ma +++ b/account.ma @@ -42,7 +42,7 @@ class Channel(channel.SSHChannel): self.sftp.makeConnection(self) self.dataReceived = self.sftp.dataReceived self.callback(self.sftp) - d = self.conn.sendRequest(self, 'subsystem', + d = self.conn.sendRequest(self, 'subsystem', common.NS('sftp'), wantReply=1) d.addCallbacks(gotResult, gotError) def closed(self): @@ -74,9 +74,9 @@ def account(user, password, host, port): mode = filetransfer.FXF_WRITE|filetransfer.FXF_CREAT|filetransfer.FXF_TRUNC else: mode = filetransfer.FXP_OPEN - d = sftp.openFile(".plan", mode, {}) + d = sftp.openFile(".plan", mode, {}) d.addCallback(gotFile) - c = protocol.ClientCreator(reactor, + c = protocol.ClientCreator(reactor, Transport, user, password, gotProtocol).connectTCP(host, port) host = None diff --git a/profile.ma b/profile.ma index d5d42b6..d8c0e4b 100644 --- a/profile.ma +++ b/profile.ma @@ -42,7 +42,7 @@ def finger(user, host, port=79): c = ClientCreator(reactor, FingerProtocol, user) d = c.connectTCP(host, port) d.addCallbacks(gotProtocol, error) - d = deferLater(reactor, 0, connect) + d = deferLater(reactor, 0, connect) return d user = None