Skip to content

Commit 8161461

Browse files
committed
Fix docstring.
1 parent d78f1e1 commit 8161461

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ssh2/session.pyx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ cdef class Session:
148148
If a method is listed which is not supported by libssh2 it will be
149149
ignored and not sent to the remote host during protocol negotiation.
150150
:type pref_methods: bytes
151-
:rtype: ``int``"""
151+
:rtype: ``int``
152+
"""
152153
if (int(method_type)<1 and int(method_type)>10) or self._sock!=0:
153154
return handle_error_codes(
154155
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)
@@ -204,7 +205,8 @@ cdef class Session:
204205
``method_type`` argument.
205206
:param method_type: Method type.
206207
:type method_type: ``ssh2.session.LIBSSH2_METHOD_*``
207-
:rtype: ``bytes``"""
208+
:rtype: ``bytes``
209+
"""
208210
if (int(method_type)<1 and int(method_type)>10) or self._sock==0:
209211
return handle_error_codes(
210212
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)
@@ -257,7 +259,8 @@ cdef class Session:
257259
:type method_type: ``ssh2.session.LIBSSH2_METHOD_*``
258260
:param algs: Coma delimited list as a bytes string.
259261
:type algs: ``bytes str``
260-
:rtype: ``array``"""
262+
:rtype: ``array``
263+
"""
261264
if (int(method_type)<1 and int(method_type)>10) or \
262265
isinstance(algs, type(b'')) is False:
263266
return handle_error_codes(
@@ -315,7 +318,8 @@ cdef class Session:
315318
:param value: Value that ``set_flag`` will be set to. Must be ``0`` or
316319
``1``.
317320
:type value: ``int``
318-
:rtype: ``int``"""
321+
:rtype: ``int``
322+
"""
319323
if (int(set_flag)<1 or int(set_flag)>3) or (value!=0 and value!=1):
320324
return handle_error_codes(
321325
error_codes.LIBSSH2_ERROR_METHOD_NOT_SUPPORTED)

0 commit comments

Comments
 (0)