Parcourir la source

[2641] Update doc for _try_login()

Mukund Sivaraman il y a 12 ans
Parent
commit
ada6840f0a
1 fichiers modifiés avec 6 ajouts et 8 suppressions
  1. 6 8
      src/bin/bindctl/bindcmd.py

+ 6 - 8
src/bin/bindctl/bindcmd.py

@@ -222,14 +222,12 @@ WARNING: Python readline module isn't available, so the command line editor
 
 
     def _try_login(self, username, password):
     def _try_login(self, username, password):
         '''
         '''
-        Attempts to log in to cmdctl by sending a POST with
-        the given username and password.
-        On success of the POST (mind, not the login, only the network
-        operation), returns a tuple (response, data).
-        On failure, raises a FailToLogin exception, and prints some
-        information on the failure.
-        This call is essentially 'private', but made 'protected' for
-        easier testing.
+        Attempts to log into cmdctl by sending a POST with the given
+        username and password. On success of the POST (not the login,
+        but the network operation), it returns a tuple (response, data).
+        On failure, it raises a FailToLogin exception and prints some
+        information on the failure.  This call is essentially 'private',
+        but made 'protected' for easier testing.
         '''
         '''
         param = {'username': username, 'password' : password}
         param = {'username': username, 'password' : password}
         try:
         try: