-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conform to PEP8 #8
Conversation
Also rename vars shadowing built-ins
Thanks! I haven't had a chance to test it, but I've been meaning to PEP8-fy this module and just never had the time. Could I get you to do two minor things?
|
No problem. Part of our own PEP8 cleanup, so I figured best to contribute I'll tackle them tomorrow morning. Tested locally and on Travis-CI. Should
|
- Removed magic numbers - Add back netstat-hack - Removed unused vars
@yimingliu Believe I implemented what was requested. |
Conform to PEP8. Convenience class NatPMP. New gateway detection using netifaces. Thanks to @super3!
Note credit goes to @robertsdotpm for the get_gateway_addr() with netifaces. I just did the PEP8 stuff. |
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Also rename vars shadowing built-ins.