Switched to platform-specific line separators when writing out files

This commit is contained in:
Thomas Snider 2017-07-12 20:08:57 -07:00
parent 27cfe3499b
commit a24faca5b0
1 changed files with 4 additions and 4 deletions

2
sublist3r.py Normal file → Executable file
View File

@ -106,7 +106,7 @@ def write_file(filename, subdomains):
print("%s[-] Saving results to file: %s%s%s%s" % (Y, W, R, filename, W))
with open(str(filename), 'wt') as f:
for subdomain in subdomains:
f.write(subdomain + "\r\n")
f.write(subdomain + os.linesep)
def subdomain_sorting_key(hostname):