[chirp_devel] [PATCH] previous patch for bug #4687 causes PEP8 regression problem,

SASANO Takayoshi
Sun Apr 30 13:30:45 PDT 2017


# HG changeset patch
# User SASANO Takayoshi <uaa at mx5.nisiq.net>
# Date 1493583918 -32400
#      Mon May 01 05:25:18 2017 +0900
# Node ID 709a6b83ea0f9241f9b7007afcb6bf21ea73dc3c
# Parent  50a123640cf59047c2e8f91f4a87cb3e9380dfdb
previous patch for bug #4687 causes PEP8 regression problem,
"E261 at least two spaces before inline comment".

Replace a tab character to two spaces to fix the problem.

diff -r 50a123640cf5 -r 709a6b83ea0f chirp/drivers/icf.py
--- a/chirp/drivers/icf.py	Fri Apr 28 23:10:50 2017 +0900
+++ b/chirp/drivers/icf.py	Mon May 01 05:25:18 2017 +0900
@@ -199,7 +199,7 @@
 
     pipe.write(frame)
     pipe.flush()
-    pipe.read(len(frame))	# discard echoback
+    pipe.read(len(frame))  # discard echoback
 
     return frame
 
@@ -263,7 +263,7 @@
     LOG.debug("Starting HiSpeed Clone:\n%s" % util.hexprint(buf))
     radio.pipe.write(buf)
     radio.pipe.flush()
-    radio.pipe.read(len(buf))	# discard echoback
+    radio.pipe.read(len(buf))  # discard echoback
 
 
 def _clone_from_radio(radio):



More information about the chirp_devel mailing list