mirror of
https://github.com/danielmiessler/SecLists.git
synced 2024-09-11 02:45:30 +03:00
Update new-line-and-empty-line-checker.py
Fix the erroneous 'has an empty entry at line $file-line-length+1' error
This commit is contained in:
parent
654206a7b1
commit
2fad2aefbc
@ -27,7 +27,7 @@ for i in files:
|
||||
|
||||
counter=1
|
||||
|
||||
for line in contents.split(b'\n'):
|
||||
for line in contents.splitlines(False):
|
||||
if len(line)==0:
|
||||
print("[!] %s has an empty entry at line %i!"%(i,counter))
|
||||
exit(2)
|
||||
|
Loading…
Reference in New Issue
Block a user