highvolt-dev / tmo-monitor

A lightweight, cross-platform Python 3 script that can monitor the T-Mobile Home Internet Nokia, Arcadyan, and Sagecom 5G Gateways for 4G/5G bands, cellular site (tower), and internet connectivity and reboots as needed or on-demand.
MIT License
89 stars 15 forks source link

Python 3.x compatibility #69

Open highvolt-dev opened 2 years ago

highvolt-dev commented 2 years ago

capture_output kwarg for subprocess.run was introduced in Python 3.7 - instead use stdout=subprocess.PIPE, stderr=subprocess.PIPE

Reported by reddit user /u/Tractor_Boy_500