##// END OF EJS Templates
py3: byteify contrib/check-config.py...
Matt Harbison -
r39744:fe28267d default
parent child Browse files
Show More
@@ -104,12 +104,12 b' def main(args):'
104 104 ctype = m.group('ctype')
105 105 if not ctype:
106 106 ctype = 'str'
107 name = m.group('section') + "." + m.group('option')
107 name = m.group('section') + b"." + m.group('option')
108 108 default = m.group('default')
109 109 if default in (None, 'False', 'None', '0', '[]', '""', "''"):
110 default = ''
110 default = b''
111 111 if re.match(b'[a-z.]+$', default):
112 default = '<variable>'
112 default = b'<variable>'
113 113 if (name in foundopts and (ctype, default) != foundopts[name]
114 114 and name not in allowinconsistent):
115 115 print(l.rstrip())
@@ -117,19 +117,19 b' def main(args):'
117 117 foundopts[name]))
118 118 print("at %s:%d:" % (f, linenum))
119 119 foundopts[name] = (ctype, default)
120 carryover = ''
120 carryover = b''
121 121 else:
122 122 m = re.search(configpartialre, line)
123 123 if m:
124 124 carryover = line
125 125 else:
126 carryover = ''
126 carryover = b''
127 127
128 128 for name in sorted(foundopts):
129 129 if name not in documented:
130 if not (name.startswith("devel.") or
131 name.startswith("experimental.") or
132 name.startswith("debug.")):
130 if not (name.startswith(b"devel.") or
131 name.startswith(b"experimental.") or
132 name.startswith(b"debug.")):
133 133 ctype, default = foundopts[name]
134 134 if default:
135 135 default = ' [%s]' % default
General Comments 0
You need to be logged in to leave comments. Login now