File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,11 @@ class IN answer.
167
167
pointer += 1
168
168
break
169
169
# Check for a type A answer.
170
- if int .from_bytes (response [pointer : pointer + 2 ], "big" ) == TYPE_A :
170
+ if int .from_bytes (response [pointer : pointer + 2 ], "big" ) == _TYPE_A :
171
171
# Check for an IN class answer.
172
172
if (
173
173
int .from_bytes (response [pointer + 2 : pointer + 4 ], "big" )
174
- == CLASS_IN
174
+ == _CLASS_IN
175
175
):
176
176
_debug_print (
177
177
debug = debug ,
@@ -184,11 +184,11 @@ class IN answer.
184
184
# Confirm that the resource record is 4 bytes (an IPv4 address).
185
185
if (
186
186
int .from_bytes (response [pointer : pointer + 2 ], "big" )
187
- == DATA_LEN
187
+ == _DATA_LEN
188
188
):
189
189
ipv4 = response [pointer + 2 : pointer + 6 ]
190
190
# Low probability that the response was truncated inside the 4 byte address.
191
- if len (ipv4 ) != DATA_LEN :
191
+ if len (ipv4 ) != _DATA_LEN :
192
192
raise ValueError ("IPv4 address is not 4 bytes." )
193
193
_debug_print (
194
194
debug = debug ,
You can’t perform that action at this time.
0 commit comments