Remove superfluous trailing white space from Python files
This commit is contained in:
@@ -25,7 +25,7 @@ class HidenProtocol(Protocol):
|
||||
print "connectionMade:", self.factory.numProtocols
|
||||
if self.factory.numProtocols > 2:
|
||||
print "Too many connections - rejecting"
|
||||
self.transport.write("Too many connections, try later" + self.term)
|
||||
self.transport.write("Too many connections, try later" + self.term)
|
||||
self.transport.loseConnection()
|
||||
else:
|
||||
self.transport.write(("Welcome connection %d" % self.factory.numProtocols) + self.term)
|
||||
@@ -58,7 +58,7 @@ class HidenProtocol(Protocol):
|
||||
self.response = ""
|
||||
else:
|
||||
self.pdu = self.pdu + c
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
class TestDevice:
|
||||
def __init__(self):
|
||||
|
||||
@@ -95,7 +95,7 @@ class HidenXCS(HidenDevice):
|
||||
if self.DigitalOut[2] and (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2]) > 0:
|
||||
self.humidity = 100.0
|
||||
self.humidity *= self.AnalogIn[1]
|
||||
self.humidity /= (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2])
|
||||
self.humidity /= (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2])
|
||||
|
||||
def doCommandAOUT(self, cmd, args):
|
||||
idx = int(args[0])
|
||||
|
||||
Reference in New Issue
Block a user