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

Kosta A.
Sun Sep 26 20:39:22 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__)
 
 
diff --git a/chirp/drivers/ga510.py b/chirp/drivers/ga510.py
--- a/chirp/drivers/ga510.py
+++ b/chirp/drivers/ga510.py
@@ -17,7 +17,7 @@
     has_future = True
 except ImportError:
     has_future = False
-    LOG.warning('python-future package is not available; '
+    LOG.debug('python-future package is not available; '
                 '%s requires it' % __name__)
 
 # GA510 also has DTCS code 645
diff --git a/chirp/drivers/ic2730.py b/chirp/drivers/ic2730.py
--- a/chirp/drivers/ic2730.py
+++ b/chirp/drivers/ic2730.py
@@ -35,7 +35,7 @@
     from builtins import bytes
 except ImportError:
     HAS_FUTURE = False
-    LOG.warning('python-future package is not '
+    LOG.debug('python-future package is not '
                 'available; %s requires it' % __name__)
 
 MEM_FORMAT = """
diff --git a/chirp/drivers/tk8180.py b/chirp/drivers/tk8180.py
--- a/chirp/drivers/tk8180.py
+++ b/chirp/drivers/tk8180.py
@@ -36,7 +36,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__)
 
 
diff --git a/chirp/drivers/tmd710.py b/chirp/drivers/tmd710.py
--- a/chirp/drivers/tmd710.py
+++ b/chirp/drivers/tmd710.py
@@ -36,7 +36,7 @@
     from builtins import bytes
 except ImportError:
     HAS_FUTURE = False
-    LOG.warning('python-future package is not '
+    LOG.debug('python-future package is not '
                 'available; %s requires it' % __name__)
 
 BAUD = 0



More information about the chirp_devel mailing list