BIND 10 trac615, updated. dcaab4f4a892d1ab0e9e2c246282066891b2ffcb [trac615] minor editorial fixes.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Mar 10 19:44:03 UTC 2011
The branch, trac615 has been updated
via dcaab4f4a892d1ab0e9e2c246282066891b2ffcb (commit)
from 02d45b17f160bd3662ee765147debe770c6d3faa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dcaab4f4a892d1ab0e9e2c246282066891b2ffcb
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Mar 10 11:43:10 2011 -0800
[trac615] minor editorial fixes.
- remove ' ' around '=' in parameter listing (style guideline)
- add a new line for readability
- typo in doc
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/bind10.py.in | 4 ++--
src/bin/bind10/tests/bind10_test.py | 2 ++
src/lib/python/isc/config/cfgmgr.py | 4 ++--
src/lib/python/isc/testutils/README | 2 +-
4 files changed, 7 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10.py.in b/src/bin/bind10/bind10.py.in
index bbca56a..0709c67 100755
--- a/src/bin/bind10/bind10.py.in
+++ b/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).
diff --git a/src/bin/bind10/tests/bind10_test.py b/src/bin/bind10/tests/bind10_test.py
index 6eb6189..a7e8149 100644
--- a/src/bin/bind10/tests/bind10_test.py
+++ b/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.
diff --git a/src/lib/python/isc/config/cfgmgr.py b/src/lib/python/isc/config/cfgmgr.py
index 6420f01..d8f08bb 100644
--- a/src/lib/python/isc/config/cfgmgr.py
+++ b/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
diff --git a/src/lib/python/isc/testutils/README b/src/lib/python/isc/testutils/README
index 7e6ef06..c0389a8 100644
--- a/src/lib/python/isc/testutils/README
+++ b/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.
More information about the bind10-changes
mailing list