@@ -148,7 +148,8 @@ cdef class Session:
148
148
If a method is listed which is not supported by libssh2 it will be
149
149
ignored and not sent to the remote host during protocol negotiation.
150
150
:type pref_methods: bytes
151
- :rtype: ``int``"""
151
+ :rtype: ``int``
152
+ """
152
153
if (int (method_type)< 1 and int (method_type)> 10 ) or self ._sock!= 0 :
153
154
return handle_error_codes(
154
155
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)
@@ -204,7 +205,8 @@ cdef class Session:
204
205
``method_type`` argument.
205
206
:param method_type: Method type.
206
207
:type method_type: ``ssh2.session.LIBSSH2_METHOD_*``
207
- :rtype: ``bytes``"""
208
+ :rtype: ``bytes``
209
+ """
208
210
if (int (method_type)< 1 and int (method_type)> 10 ) or self ._sock== 0 :
209
211
return handle_error_codes(
210
212
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)
@@ -257,7 +259,8 @@ cdef class Session:
257
259
:type method_type: ``ssh2.session.LIBSSH2_METHOD_*``
258
260
:param algs: Coma delimited list as a bytes string.
259
261
:type algs: ``bytes str``
260
- :rtype: ``array``"""
262
+ :rtype: ``array``
263
+ """
261
264
if (int (method_type)< 1 and int (method_type)> 10 ) or \
262
265
isinstance (algs, type (b' ' )) is False :
263
266
return handle_error_codes(
@@ -315,7 +318,8 @@ cdef class Session:
315
318
:param value: Value that ``set_flag`` will be set to. Must be ``0`` or
316
319
``1``.
317
320
:type value: ``int``
318
- :rtype: ``int``"""
321
+ :rtype: ``int``
322
+ """
319
323
if (int (set_flag)< 1 or int (set_flag)> 3 ) or (value!= 0 and value!= 1 ):
320
324
return handle_error_codes(
321
325
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)
0 commit comments