@@ -281,8 +281,8 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
281281 # Make names
282282 mod = ""
283283 sign = "+"
284- offset = 0
285- width = 0
284+ offset = "0"
285+ width = "0"
286286 base = "d"
287287 g1 = is_generate1 .match (side )
288288 if g1 :
@@ -295,7 +295,7 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
295295 mod , sign , offset = g2 .groups ()
296296 if sign == "" :
297297 sign = "+"
298- width = 0
298+ width = "0"
299299 base = "d"
300300 else :
301301 g3 = is_generate3 .match (side )
@@ -305,15 +305,15 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
305305 sign = "+"
306306 base = "d"
307307
308- offset = int (offset )
309- width = int (width )
308+ ioffset = int (offset )
309+ iwidth = int (width )
310310
311311 if sign not in ["+" , "-" ]:
312312 raise dns .exception .SyntaxError (f"invalid offset sign { sign } " )
313313 if base not in ["d" , "o" , "x" , "X" , "n" , "N" ]:
314314 raise dns .exception .SyntaxError (f"invalid type { base } " )
315315
316- return mod , sign , offset , width , base
316+ return mod , sign , ioffset , iwidth , base
317317
318318 def _generate_line (self ):
319319 # range lhs [ttl] [class] type rhs [ comment ]
0 commit comments