mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-08-12 16:17:01 +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
|
counter=1
|
||||||
|
|
||||||
for line in contents.split(b'\n'):
|
for line in contents.splitlines(False):
|
||||||
if len(line)==0:
|
if len(line)==0:
|
||||||
print("[!] %s has an empty entry at line %i!"%(i,counter))
|
print("[!] %s has an empty entry at line %i!"%(i,counter))
|
||||||
exit(2)
|
exit(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user