[chirp_devel] [PATCH] Supress console spew from python-future warning in non-debug builds

Dan Smith
Tue Sep 28 17:59:01 PDT 2021


> # HG changeset patch
> # User Kosta A. <ve7kcy at gmail.com>
> # Date 1632713960 25200
> #      Sun Sep 26 20:39:20 2021 -0700
> # Node ID 5aa2294d78ea241c6573dcf1929475b072e73685
> # Parent  3a40534ccc6e58d9818224eb8182bb62499fac80
> Supress console spew from python-future warning in non-debug builds.
> 
> diff --git a/chirp/drivers/anytone778uv.py b/chirp/drivers/anytone778uv.py
> --- a/chirp/drivers/anytone778uv.py
> +++ b/chirp/drivers/anytone778uv.py
> @@ -60,7 +60,7 @@
>     has_future = True
> except ImportError:
>     has_future = False
> -    LOG.warning('python-future package is not '
> +    LOG.debug('python-future package is not '
>                 'available; %s requires it' % __name__)

This will fail the style check because you didn't re-align the continued line. I've fixed it for you to apply, but please make sure your patches pass the style checks in the future.

--Dan


More information about the chirp_devel mailing list