remcohaszing / pywakeonlan

A small python module for wake on lan.
https://pywakeonlan.readthedocs.io
MIT License
281 stars 68 forks source link

Use with block for socket logic #14

Closed DavidPratt512 closed 4 years ago

DavidPratt512 commented 4 years ago

Change socket logic to use a with block to emulate try:/finally: behavior. Adjust tests to match addition of with block.

remcohaszing commented 4 years ago

Sorry for the delay. I wanted to test this on a physical device before merging. It works! Thanks!