[svn] commit: r2300 - /branches/tingting-loadzone/src/lib/python/isc/datasrc/master.py

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jun 28 05:51:13 UTC 2010


Author: shentingting
Date: Mon Jun 28 05:51:13 2010
New Revision: 2300

Log:
correct several coding error.

Modified:
    branches/tingting-loadzone/src/lib/python/isc/datasrc/master.py

Modified: branches/tingting-loadzone/src/lib/python/isc/datasrc/master.py
==============================================================================
--- branches/tingting-loadzone/src/lib/python/isc/datasrc/master.py (original)
+++ branches/tingting-loadzone/src/lib/python/isc/datasrc/master.py Mon Jun 28 05:51:13 2010
@@ -194,7 +194,7 @@
     __rrclass = 'IN'
     __maxttl = 0x7fffffff
     __ttl = ''
-    __lastttl= ''
+    __lastttl = ''
     __zonefile = ''
     __name = ''
     __file_level = 0
@@ -223,7 +223,7 @@
 
     def __status(self):
         interval = time.time() - MasterFile.__init_time
-        if self.__filesize ==0:
+        if self.__filesize == 0:
             percent = 100
         else:
             percent = (self.__cur * 100)/self.__filesize
@@ -306,7 +306,7 @@
         if not s.lower().startswith('$include'):
             return "", ""
         s = s[len('$include'):]
-        m =self. __include_syntax1.match(s)
+        m = self.__include_syntax1.match(s)
         if not m:
             m = self.__include_syntax2.match(s)
         if not m:
@@ -565,7 +565,7 @@
         cur_value = self.__cur
         old_location = self.__zonefile.tell()
         old_verbose = self.__verbose
-        self.__verbose = 0
+        self.__verbose = False
         self.__zonefile.seek(0)
 
         for name, ttl, rrclass, rrtype, rdata in self.zonedata():




More information about the bind10-changes mailing list