@@ -281,8 +281,8 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
281
281
# Make names
282
282
mod = ""
283
283
sign = "+"
284
- offset = 0
285
- width = 0
284
+ offset = "0"
285
+ width = "0"
286
286
base = "d"
287
287
g1 = is_generate1 .match (side )
288
288
if g1 :
@@ -295,7 +295,7 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
295
295
mod , sign , offset = g2 .groups ()
296
296
if sign == "" :
297
297
sign = "+"
298
- width = 0
298
+ width = "0"
299
299
base = "d"
300
300
else :
301
301
g3 = is_generate3 .match (side )
@@ -305,15 +305,15 @@ def _parse_modify(self, side: str) -> Tuple[str, str, int, int, str]:
305
305
sign = "+"
306
306
base = "d"
307
307
308
- offset = int (offset )
309
- width = int (width )
308
+ ioffset = int (offset )
309
+ iwidth = int (width )
310
310
311
311
if sign not in ["+" , "-" ]:
312
312
raise dns .exception .SyntaxError (f"invalid offset sign { sign } " )
313
313
if base not in ["d" , "o" , "x" , "X" , "n" , "N" ]:
314
314
raise dns .exception .SyntaxError (f"invalid type { base } " )
315
315
316
- return mod , sign , offset , width , base
316
+ return mod , sign , ioffset , iwidth , base
317
317
318
318
def _generate_line (self ):
319
319
# range lhs [ttl] [class] type rhs [ comment ]
0 commit comments