mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-07-21 00:35:51 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user