-
Notifications
You must be signed in to change notification settings - Fork 114
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
Migration to python3.8+ #143
base: master
Are you sure you want to change the base?
Conversation
- Update src/mainScanner.py - Update src/ipscanner.py
Thanks for opening this pull request! 🤗 Check out few other repos below 🚀 PS: Please add @vinitshahdeo / @Kashish121 / @ishika1727 as a reviewer if you haven't added. |
Hi @vinitshahdeo please change the labels for this PR ! |
@@ -19,7 +19,7 @@ def homepage(): | |||
return render_template('index.html') | |||
|
|||
|
|||
exc = getattr(__builtin__, "IOError", "FileNotFoundError") | |||
exc = getattr(__builtins__, "IOError", "FileNotFoundError") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this line would not throw error while running.
It should be
exc = getattr(builtins, "IOError", "FileNotFoundError")
instead of
exc = getattr(__builtins__, "IOError", "FileNotFoundError")
,
I suppose.
@ranaaditya does this file execute normally with __builtins__
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it was working fine in my local.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to go then.
@vinitshahdeo can you please review this PR and merge if possible ? |
@Kashish121 whats the status about this PR ? |
Description
This PR is for the Migration of the project from python 2.7 to python 3.8+
Fixes # (issue)
Type of change
Checklist: