Skip to content

Commit f7bc643

Browse files
Update IP2Location.py
1 parent 5c030f5 commit f7bc643

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

IP2Location.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,19 +682,15 @@ def is_ipv4(self, ip):
682682
for i in range(0,len(ip_parts)):
683683
if ip_parts[i].isdigit():
684684
if int(ip_parts[i]) > 255:
685-
print('1')
686685
return False
687686
else:
688-
print('2')
689687
return False
690688
pattern = r'^([0-9]{1,3}[.]){3}[0-9]{1,3}$'
691689
if match(pattern, ip) is not None:
692690
return True
693691
else:
694-
print('3')
695692
return False
696693
else:
697-
print('4')
698694
return False
699695
return False
700696

0 commit comments

Comments
 (0)