BIND 10 trac2710, updated. 1090b92f9a37d021c445b046b9245861df6ca36f [2710] small cleanup: make _accounts_file member 'private'

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 7 16:32:53 UTC 2013


The branch, trac2710 has been updated
       via  1090b92f9a37d021c445b046b9245861df6ca36f (commit)
      from  38faa03d1c37053d1c4ffe5e689716d42191a59e (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 1090b92f9a37d021c445b046b9245861df6ca36f
Author: Jelte Jansen <jelte at isc.org>
Date:   Thu Mar 7 17:32:37 2013 +0100

    [2710] small cleanup: make _accounts_file member 'private'

-----------------------------------------------------------------------

Summary of changes:
 src/bin/cmdctl/cmdctl.py.in |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/cmdctl/cmdctl.py.in b/src/bin/cmdctl/cmdctl.py.in
index 85716a1..a5eff8c 100755
--- a/src/bin/cmdctl/cmdctl.py.in
+++ b/src/bin/cmdctl/cmdctl.py.in
@@ -502,7 +502,7 @@ class SecureHTTPServer(socketserver_mixin.NoPollMixIn,
         self._verbose = verbose
         self._lock = threading.Lock()
         self._user_infos = {}
-        self._accounts_file = None
+        self.__accounts_file = None
         self.__accounts_file_mtime = 0
 
     def _create_user_info(self, accounts_file):
@@ -512,14 +512,14 @@ class SecureHTTPServer(socketserver_mixin.NoPollMixIn,
         # If the file does not exist, set accounts to empty, and return
         if not os.path.exists(accounts_file):
             self._user_infos = {}
-            self._accounts_file = accounts_file
+            self.__accounts_file = accounts_file
             self.__accounts_file_mtime = 0
             return
 
         # If the filename hasn't changed, and the file itself
         # has neither, do nothing
         accounts_file_mtime = os.stat(accounts_file).st_mtime
-        if self._accounts_file == accounts_file and\
+        if self.__accounts_file == accounts_file and\
            accounts_file_mtime <= self.__accounts_file_mtime:
             return
 
@@ -538,7 +538,7 @@ class SecureHTTPServer(socketserver_mixin.NoPollMixIn,
                 if csvfile:
                     csvfile.close()
 
-        self._accounts_file = accounts_file
+        self.__accounts_file = accounts_file
         self.__accounts_file_mtime = accounts_file_mtime
         if len(self._user_infos) == 0:
             logger.error(CMDCTL_NO_USER_ENTRIES_READ)



More information about the bind10-changes mailing list