mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-13 05:41:37 +00:00
injector: strip trailing '\n' from lines
We don't need a corrupted hashes in db :)
This commit is contained in:
parent
dd498acf04
commit
2858ba6084
2
injector
2
injector
@ -27,6 +27,8 @@ for line in f:
|
||||
if line.find('=') == -1:
|
||||
print 'Invalid line: %s' % line
|
||||
continue
|
||||
# strip trailing '\n'
|
||||
line = line.rstrip('\n')
|
||||
entry = line.split('=')
|
||||
try:
|
||||
hostname = validate_hostname(entry[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user