mirror of
https://github.com/danielmiessler/SecLists
synced 2026-01-03 14:44:48 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue