Browse Source

[1429] fixed typo and minor editorial issue

JINMEI Tatuya 13 years ago
parent
commit
9f792ee32b
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/bin/bind10/bind10_src.py.in
  2. 2 2
      src/bin/bind10/tests/bind10_test.py.in

+ 2 - 2
src/bin/bind10/bind10_src.py.in

@@ -844,7 +844,7 @@ class BoB:
                 share_mode = args['share_mode']
                 share_mode = args['share_mode']
                 if share_mode not in ['ANY', 'SAMEAPP', 'NO']:
                 if share_mode not in ['ANY', 'SAMEAPP', 'NO']:
                     raise ValueError("Share mode must be one of ANY, SAMEAPP" +
                     raise ValueError("Share mode must be one of ANY, SAMEAPP" +
-                                     "or NO")
+                                     " or NO")
                 share_name = args['share_name']
                 share_name = args['share_name']
             except KeyError as ke:
             except KeyError as ke:
                 return \
                 return \
@@ -865,7 +865,7 @@ class BoB:
         """
         """
         This function handles a token that comes over a unix_domain socket.
         This function handles a token that comes over a unix_domain socket.
         The function looks into the _socket_cache and sends the socket
         The function looks into the _socket_cache and sends the socket
-        identified by the tocken back over the unix_socket.
+        identified by the token back over the unix_socket.
         """
         """
         try:
         try:
             fd = self._socket_cache.get_socket(token, unix_socket.fileno())
             fd = self._socket_cache.get_socket(token, unix_socket.fileno())

+ 2 - 2
src/bin/bind10/tests/bind10_test.py.in

@@ -237,7 +237,7 @@ class TestCacheCommands(unittest.TestCase):
         """
         """
         def check_code(code, args):
         def check_code(code, args):
             """
             """
-            Pass the args there and check if it returs success or not.
+            Pass the args there and check if it returns success or not.
 
 
             The rest is not tested, as it is already checked in the
             The rest is not tested, as it is already checked in the
             test_get_socket_ok.
             test_get_socket_ok.
@@ -246,7 +246,7 @@ class TestCacheCommands(unittest.TestCase):
             self.assertEqual(code, rcode)
             self.assertEqual(code, rcode)
             if code == 1:
             if code == 1:
                 # This should be an error message. The exact formatting
                 # This should be an error message. The exact formatting
-                # is unknown, but we check it is string at last
+                # is unknown, but we check it is string at least
                 self.assertTrue(isinstance(ranswer, str))
                 self.assertTrue(isinstance(ranswer, str))
         def mod_args(name, value):
         def mod_args(name, value):
             """
             """