[PATCH] examples: rework imports

2021-02-13 Thread yegorslists
From: Yegor Yefremov Remove unused imports and fix import sorting using isort utility. --- examples/modem-watcher-python/ModemWatcher.py | 6 +++--- examples/modem-watcher-python/modem-watcher-python | 6 -- examples/network-scan-python/network-scan-python | 6 --

Re: [PATCH] examples: rework imports

2021-02-13 Thread Aleksander Morgado
On Sat, Feb 13, 2021 at 9:40 AM wrote: > > From: Yegor Yefremov > > Remove unused imports and fix import sorting using isort utility. > --- > examples/modem-watcher-python/ModemWatcher.py | 6 +++--- > examples/modem-watcher-python/modem-watcher-python | 6 -- >

[PATCH 2/2] examples: network-scan: enable modem before the network scan

2021-02-13 Thread yegorslists
From: Yegor Yefremov Otherwise we get the following exception: Traceback (most recent call last): File "/root/network-scan-python", line 57, in networks = modem3gpp.scan_sync() gi.repository.GLib.Error: mm_core_error_quark:

[PATCH 1/2] examples: network-scan: resolve PEP8 issues

2021-02-13 Thread yegorslists
From: Yegor Yefremov Use autopep8 utility to resolve issues like spaces before brackets and wrong hanging indentation. Also treat objects like boolean variables to check whether they are None or not. --- .../network-scan-python/network-scan-python | 24 +++ 1 file changed, 14