update Tue Jun 22 06:37:08 PDT 2010
[pkgsrc.git] / wip / py-ssh2 / patches / patch-ah
1 $NetBSD$
2
3 --- src/ssh2/ssh2.c.orig        2008-07-19 06:43:24.000000000 -0400
4 +++ src/ssh2/ssh2.c     2010-02-11 12:47:17.000000000 -0500
5 @@ -86,32 +86,12 @@
6      return (PyObject *)SSH2_SFTP_New(sftp, dealloc);\r
7  }\r
8  \r
9 -static char SSH2_getCompressionMethods_doc[] = "";\r
10 -\r
11 -static PyObject *\r
12 -SSH2_getCompressionMethods(SSH2_SessionObj *self, PyObject *args)\r
13 -{      \r
14 -       PyObject *result;\r
15 -       const LIBSSH2_COMP_METHOD **compp = libssh2_comp_methods();\r
16 -       \r
17 -       if (!PyArg_ParseTuple(args, ":getCompressionMethods"))\r
18 -               return NULL;\r
19 -       \r
20 -       result = PyList_New(0);\r
21 -       while (*compp && (*compp)->name) {\r
22 -        PyList_Append(result, PyString_FromString((unsigned char *) (*compp)->name));\r
23 -        compp++;\r
24 -    }\r
25 -       return result;\r
26 -}\r
27 -\r
28  /* Methods in the OpenSSL.ssh module (i.e. none) */\r
29  static PyMethodDef SSH2_methods[] = {\r
30      /* Module functions */\r
31         { "Session",(PyCFunction)SSH2_Session,   METH_VARARGS, SSH2_Session_doc },\r
32         { "Channel",(PyCFunction)SSH2_Channel,   METH_VARARGS, SSH2_Channel_doc },\r
33         { "SFTP",(PyCFunction)SSH2_SFTP,   METH_VARARGS, SSH2_SFTP_doc },\r
34 -       { "getCompressionMethods",(PyCFunction)SSH2_getCompressionMethods,   METH_VARARGS, SSH2_getCompressionMethods_doc },\r
35      { NULL, NULL }\r
36  };\r
37  \r