@@ -17,7 +17,8 @@ def __init__(self, args, callback, query=None, encoding='utf-8', options=None):
1717 self .encoding = encoding
1818 self .callback = callback
1919 self .options = options
20- # Don't allow empty dicts or lists as defaults in method signature, cfr http://nedbatchelder.com/blog/200806/pylint.html
20+ # Don't allow empty dicts or lists as defaults in method signature,
21+ # cfr http://nedbatchelder.com/blog/200806/pylint.html
2122 if self .options is None :
2223 self .options = {}
2324 Thread .__init__ (self )
@@ -58,17 +59,17 @@ def run(self):
5859 if 'show_query' in self .options and self .options ['show_query' ]:
5960 resultInfo = "/*\n -- Executed querie(s) at {0} took {1}ms --" .format (
6061 str (time .strftime ("%Y-%m-%d %H:%M:%S" , time .localtime (queryTimerStart ))),
61- str (queryTimerEnd - queryTimerStart )
62- )
63- resultLine = "-" * (len (resultInfo )- 3 )
64- resultString = "{0}\n {1}\n {2}\n {3}\n */\n {4}" .format (resultInfo ,
65- resultLine ,self .query ,resultLine ,resultString )
62+ str (queryTimerEnd - queryTimerStart ))
63+ resultLine = "-" * (len (resultInfo ) - 3 )
64+ resultString = "{0}\n {1}\n {2}\n {3}\n */\n {4}" .format (
65+ resultInfo , resultLine , self .query , resultLine , resultString )
6666
6767 self .callback (resultString )
6868
6969 @staticmethod
7070 def createAndRun (args , query , callback , options = None ):
71- # Don't allow empty dicts or lists as defaults in method signature, cfr http://nedbatchelder.com/blog/200806/pylint.html
71+ # Don't allow empty dicts or lists as defaults in method signature,
72+ # cfr http://nedbatchelder.com/blog/200806/pylint.html
7273 if options is None :
7374 options = {}
7475 command = Command (args , callback , query , options = options )
@@ -85,7 +86,8 @@ def __init__(self, args, callback, query=None, encoding='utf-8',
8586 self .callback = callback
8687 self .options = options
8788 self .timeout = timeout
88- # Don't allow empty dicts or lists as defaults in method signature, cfr http://nedbatchelder.com/blog/200806/pylint.html
89+ # Don't allow empty dicts or lists as defaults in method signature,
90+ # cfr http://nedbatchelder.com/blog/200806/pylint.html
8991 if self .options is None :
9092 self .options = {}
9193 Thread .__init__ (self )
@@ -107,7 +109,8 @@ def stop(self):
107109
108110 @staticmethod
109111 def createAndRun (args , query , callback , options = None , timeout = Command .timeout ):
110- # Don't allow empty dicts or lists as defaults in method signature, cfr http://nedbatchelder.com/blog/200806/pylint.html
112+ # Don't allow empty dicts or lists as defaults in method signature,
113+ # cfr http://nedbatchelder.com/blog/200806/pylint.html
111114 if options is None :
112115 options = {}
113116 command = ThreadCommand (args , callback , query , options = options , timeout = timeout )
0 commit comments