Switched to platform-specific line separators when writing out files
This commit is contained in:
parent
27cfe3499b
commit
a24faca5b0
|
@ -106,7 +106,7 @@ def write_file(filename, subdomains):
|
||||||
print("%s[-] Saving results to file: %s%s%s%s" % (Y, W, R, filename, W))
|
print("%s[-] Saving results to file: %s%s%s%s" % (Y, W, R, filename, W))
|
||||||
with open(str(filename), 'wt') as f:
|
with open(str(filename), 'wt') as f:
|
||||||
for subdomain in subdomains:
|
for subdomain in subdomains:
|
||||||
f.write(subdomain + "\r\n")
|
f.write(subdomain + os.linesep)
|
||||||
|
|
||||||
|
|
||||||
def subdomain_sorting_key(hostname):
|
def subdomain_sorting_key(hostname):
|
||||||
|
|
Loading…
Reference in New Issue