Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP8 #5

Merged
merged 2 commits into from
Jun 26, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into master
  • Loading branch information
GerbenJavado committed Jun 26, 2017
commit 7f88d9207462fddd5642001b551858ec6dc43c46
10 changes: 7 additions & 3 deletions linkfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ def parser_file(url):
)
html += string + string2

text_file = open(args.output, "w")
text_file.write(html)
text_file.close()
try:
text_file = open(args.output, "wb")
text_file.write(html.encode('utf-8'))
text_file.close()
print("URL to access output: file:///%s" % os.path.abspath(args.output))
except Exception as e:
print("Output can't be saved in %s due to exception: %s" % (args.output, e))

You are viewing a condensed version of this merge commit. You can view the full changes here.