[PATCH BlueZ] test/test-mesh: Fix python warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes inconsistent use of tabs and spaces in indentation and
removes unused import.
---
 test/test-mesh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/test-mesh b/test/test-mesh
index fbf2476bf..f49ddeec6 100755
--- a/test/test-mesh
+++ b/test/test-mesh
@@ -97,7 +97,6 @@ import struct
 import fcntl
 import os
 import numpy
-import random
 import dbus
 import dbus.service
 import dbus.exceptions
@@ -113,7 +112,7 @@ except ImportError:
 from dbus.mainloop.glib import DBusGMainLoop
 
 try:
-  from termcolor import colored, cprint
+  from termcolor import colored
   set_error = lambda x: colored('!' + x, 'red', attrs=['bold'])
   set_cyan = lambda x: colored(x, 'cyan', attrs=['bold'])
   set_green = lambda x: colored(x, 'green', attrs=['bold'])
@@ -771,7 +770,7 @@ class Menu():
 			return
 		if len(cmds) > 1:
 			for cmd in cmds:
-			     print(set_cyan(cmd + '?'))
+				print(set_cyan(cmd + '?'))
 			return
 
 		self.menu.get(cmds[0]).func()
-- 
2.17.1




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux