BIND 10 trac2497, updated. 203b4a05936d027793b03316bffa333e539876ad [2497] some suggested editorial cleanups: long line, identation, better e.g.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Dec 4 02:30:06 UTC 2012
The branch, trac2497 has been updated
via 203b4a05936d027793b03316bffa333e539876ad (commit)
from 20ff1f4962b99620990c326c50cad7fcef0d16dc (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 203b4a05936d027793b03316bffa333e539876ad
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Mon Dec 3 18:29:37 2012 -0800
[2497] some suggested editorial cleanups: long line, identation, better e.g.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/gen-rdatacode.py.in | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/gen-rdatacode.py.in b/src/lib/dns/gen-rdatacode.py.in
index 4ed700c..5f0f2ef 100755
--- a/src/lib/dns/gen-rdatacode.py.in
+++ b/src/lib/dns/gen-rdatacode.py.in
@@ -31,7 +31,7 @@ import sys
# new_rdata_factory_users.
#
# Example:
-# new_rdata_factory_users = [('a', 'in'), ('a', 'ch')]
+# new_rdata_factory_users = [('a', 'in'), ('a', 'ch'), ('soa', 'generic')]
new_rdata_factory_users = []
re_typecode = re.compile('([\da-z]+)_(\d+)')
@@ -284,10 +284,13 @@ def generate_rrparam(fileprefix, basemtime):
# By default, we use OldRdataFactory (see bug #2497). If you
# want to pick RdataFactory for a particular type, add it to
- # new_rdata_factory_users.
- if ((type_txt.lower(), class_txt.lower()) in new_rdata_factory_users) or \
- ((class_txt.lower() == 'in') and \
- ((type_txt.lower(), 'generic') in new_rdata_factory_users)):
+ # new_rdata_factory_users. Note that we explicitly generate (for
+ # optimization) class-independent ("generic") factories for class IN
+ # for optimization.
+ if (((type_txt.lower(), class_txt.lower()) in
+ new_rdata_factory_users) or
+ ((class_txt.lower() == 'in') and
+ ((type_txt.lower(), 'generic') in new_rdata_factory_users))):
rdf_class = 'RdataFactory'
else:
rdf_class = 'OldRdataFactory'
More information about the bind10-changes
mailing list