Move the PTS.__cinit__ docstring to being the class docstring.
authorEvan Broder <broder@mit.edu>
Sun, 15 Mar 2009 20:12:05 +0000 (16:12 -0400)
committerEvan Broder <broder@mit.edu>
Sun, 15 Mar 2009 20:12:25 +0000 (16:12 -0400)
That way it actually gets displayed.

Signed-off-by: Evan Broder <broder@mit.edu>

afs/_pts.pyx

index 50f6002..5ba1c4f 100644 (file)
@@ -38,23 +38,23 @@ cdef import from "afs/pterror.h":
     void initialize_PT_error_table()
 
 cdef class PTS:
     void initialize_PT_error_table()
 
 cdef class PTS:
+    """
+    A PTS object is essentially a handle to talk to the server in a
+    given cell.
+
+    cell defaults to None. If no argument is passed for cell, PTS
+    connects to the home cell.
+
+    sec is the security level, an integer from 0 to 3:
+      - 0: unauthenticated connection
+      - 1: try authenticated, then fall back to unauthenticated
+      - 2: fail if an authenticated connection can't be established
+      - 3: same as 2, plus encrypt all traffic to the protection
+        server
+    """
     cdef ubik_client * client
 
     def __cinit__(self, cell=None, sec=1):
     cdef ubik_client * client
 
     def __cinit__(self, cell=None, sec=1):
-        """
-        Open a connection to the protection server. A PTS object is
-        essentially a handle to talk to the server in a given cell.
-
-        cell defaults to None. If no argument is passed for cell, PTS
-        connects to the home cell.
-
-        sec is the security level, an integer from 0 to 3:
-         - 0: unauthenticated connection
-         - 1: try authenticated, then fall back to unauthenticated
-         - 2: fail if an authenticated connection can't be established
-         - 3: same as 2, plus encrypt all traffic to the protection
-           server
-        """
         cdef afs_int32 code
         cdef afsconf_dir *cdir
         cdef afsconf_cell info
         cdef afs_int32 code
         cdef afsconf_dir *cdir
         cdef afsconf_cell info