Parcourir la source

[trac615] minor editorial fixes.

- remove ' ' around '=' in parameter listing (style guideline)
- add a new line for readability
- typo in doc
JINMEI Tatuya il y a 14 ans
Parent
commit
dcaab4f4a8

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

@@ -194,8 +194,8 @@ class CChannelConnectError(Exception): pass
 class BoB:
     """Boss of BIND class."""
     
-    def __init__(self, msgq_socket_file=None, data_path = None,
-    config_filename = None, nocache=False, verbose=False, setuid=None,
+    def __init__(self, msgq_socket_file=None, data_path=None,
+    config_filename=None, nocache=False, verbose=False, setuid=None,
     username=None, cmdctl_port=None):
         """
             Initialize the Boss of BIND. This is a singleton (only one can run).

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

@@ -435,6 +435,7 @@ class TestParseArgs(unittest.TestCase):
         self.assertEqual('/data/path', options.data_path)
         options = parse_args(['--data-path=/data/path'], TestOptParser)
         self.assertEqual('/data/path', options.data_path)
+
     def test_config_filename(self):
         """
         Test it can parse the config switch.
@@ -443,6 +444,7 @@ class TestParseArgs(unittest.TestCase):
         self.assertEqual('config-file', options.config_file)
         options = parse_args(['--config-file=config-file'], TestOptParser)
         self.assertEqual('config-file', options.config_file)
+
     def test_cmdctl_port(self):
         """
         Test it can parse the command control port.

+ 2 - 2
src/lib/python/isc/config/cfgmgr.py

@@ -158,8 +158,8 @@ class ConfigManager:
        channel session. If not, a new session will be created.
        The ability to specify a custom session is for testing purposes
        and should not be needed for normal usage."""
-    def __init__(self, data_path, database_filename = "b10-config.db",
-                 session = None):
+    def __init__(self, data_path, database_filename="b10-config.db",
+                 session=None):
         """Initialize the configuration manager. The data_path string
            is the path to the directory where the configuration is
            stored (in <data_path>/b10-config.db). The dabase_filename

+ 1 - 1
src/lib/python/isc/testutils/README

@@ -1,3 +1,3 @@
 This contains some shared test code for other modules and python processes.
-That's why it doesn't have it's own test subdirectory and why it isn't
+That's why it doesn't have its own test subdirectory and why it isn't
 installed.