Switched to platform-specific line separators when writing out files

Switched to platform-specific line separators when writing out files
This commit is contained in:
Ahmed Aboul-Ela 2017-07-19 02:44:50 +04:00 committed by GitHub
commit def05273f7
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):